GeolocatorPlugin icon indicating copy to clipboard operation
GeolocatorPlugin copied to clipboard

Plugin.Geolocator.Abstractions.GeolocationException: A geolocation error occured: Unauthorized

Open stesvis opened this issue 5 years ago • 3 comments

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

image

stesvis avatar Jul 26 '19 16:07 stesvis

At least five threads with this issue and solutions on stackoverflow. https://stackoverflow.com/questions/51992016/xamarin-a-geolocation-error-occured-unauthorized

chrisfoulds avatar Jul 27 '19 07:07 chrisfoulds

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.

stesvis avatar Jul 27 '19 13:07 stesvis

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.

rohitvipin avatar Aug 20 '19 08:08 rohitvipin