Geolocation in Webview in Android 6.0 (E/cr_LocationProvider(28095): Caught security exception)

TiagoTavaresTiagoTavares USMember
edited March 2017 in Xamarin.Android

Hi've already spent many hours trying to figure this out, and so far no luck.

I'm using this example to be able to allow real-time permissions in Android 6.0
https://gist.github.com/Cheesebaron/ad84740c9bffa7e255c8

When I publish the app into my Android 6.0 phone everything goes well with the webview but the geolocation simply does not work.

Testing URL: https://www.google.pt/maps/
Error: E/cr_LocationProvider(28095): Caught security exception while registering for location updates from the system. The application does not have sufficient geolocation permissions.

Phones:
Sony Xperia E5
Sony Xperia E3

AndroidManifest:
uses-permission android:name="android.permission.INTERNET"
uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"
uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"
uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS"

I can't seem to find any more info on this.

Thank you.

Sign In or Register to comment.