Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
stesvis opened this issue Jul 26, 2019 · 3 comments

Comments

@stesvis
Copy link

stesvis commented Jul 26, 2019

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
Copy link

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

@stesvis
Copy link
Author

stesvis commented Jul 27, 2019

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants