GeolocatorPlugin
GeolocatorPlugin copied to clipboard
Plugin.Geolocator.Abstractions.GeolocationException: A geolocation error occured: Unauthorized
Bug Information
Version Number of Plugin: 4.5.0.6 Device Tested On: iPhone 8s Simulator Tested On: Version of VS: 15.9.14 Version of Xamarin: 4.12.3.83 Versions of other things you are using:
Steps to reproduce the Behavior
Unfortunately it happens randomly, but when trying to access the current location I get this exception:
Plugin.Geolocator.Abstractions.GeolocationException: A geolocation error occured: Unauthorized
I believe it started happening after the latest iOS version updates because the plugin version has been the same for a long time. Any advice?
Screenshotst
At least five threads with this issue and solutions on stackoverflow. https://stackoverflow.com/questions/51992016/xamarin-a-geolocation-error-occured-unauthorized
Hi thanks I've already seen that but it's regarding android. But i did check my code and i do have permissions checks. I've had it for a long time, and never a problem. I think it started lately after some iOS updates because my code hasn't changed.
On a new install does your app ask for permission for location? If not try adding code to facilitate the same. Use the latest of both Plugin.Permission and GeoLocatorPlugin.