android webview geolocation -


I have to get a user's position in a WebView I do this with the following JavaScript :

  function getLocation () {navigator.geolocation.getCurrentPosition (display space, handler); }   

But the permission request popup never opens.

I have set these settings:

  ws.setJavaScriptEnabled (true); Ws.setGeolocationEnabled (true); Ws.setJavaScriptCanOpenWindowsAutomatically (true); What is the correct way to reach a user's location from within    

Comments