jamesmontemagno / GeolocatorPlugin

Geolocation plugin for Xamarin and Windows
MIT License
294 stars 158 forks source link

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

Open stesvis opened 5 years ago

stesvis commented 5 years ago

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

chrisfoulds commented 5 years ago

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

stesvis commented 5 years ago

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.

rohitvipin commented 5 years ago

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.