KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have to retrieve a user's location in a WebView . I do this with the following Javascript: function getLocation() { navigator.geolocation.getCurrentPosition(displayLocation, handleError); } But the permission request popup never opens. I've set these settings: ws.setJavaScriptEnabled(true); ws.setGeolocationEnabled(true); ws.setJavaScriptCanOpenWindowsAutomatically(true); What is the correct way to access a user's location from within a WebView ?
Tags (comma-separated)
Save Edits
Cancel