title: android webview geolocation
body: <p>I have to retrieve a user's location in a <code>WebView</code>. I do this with the following Javascript:</p>
  
  <pre><code>function getLocation() {
     navigator.geolocation.getCurrentPosition(displayLocation, handleError);
  }
  </code></pre>
  
  <p>But the permission request popup never opens.</p>
  
  <p>I've set these settings: </p>
  
  <pre><code>ws.setJavaScriptEnabled(true);
  ws.setGeolocationEnabled(true);
  ws.setJavaScriptCanOpenWindowsAutomatically(true);
  </code></pre>
  
  <p>What is the correct way to access a user's location from within a <code>WebView</code>?</p>