Geolocation on Webview/Android with Locate Problem

242 views
Skip to first unread message

rrot...@exploratorium.edu

unread,
Feb 1, 2016, 9:56:53 PM2/1/16
to Leaflet
Hi,

I didn't see any recent post about getting the Leaflet.js Locate geolocation control working on a WebView.  

I'm seeing geolocation failure on WebChromeClient webview in my Android app on Android 5.1.1.  My Webview application has appropriate android.permission.INTERNET and android.permission.ACCESS_FINE_LOCATION permissions as well as the Javascript setting controls.


I also tried the Mapbox alternative Locate control at https://api.mapbox.com/mapbox.js/plugins/leaflet-locatecontrol/v0.43.0/L.Control.Locate.min.js with no luck. Seems to be timing out in finding location. The HTML finds location on desktop browsers and also in Firefox and Chrome mobile browsers so it seems like an issue with the WebChrome Client webview.


I found this issue but doesn't seem like there was enough info for the problem to be investigated further?  I posted there too: https://github.com/Leaflet/Leaflet/issues/3384

Hoping someone has some insight, thanks,
-Rob

Reply all
Reply to author
Forward
0 new messages