-
Notifications
You must be signed in to change notification settings - Fork 291
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
watchPosition doesn't raise an error if the user disables location services #53
Comments
I think this is what you are looking for: |
You mean the error callback is not triggered ? That seems like a bug, I'll look into it. |
@Agontuk yes the |
Same issue. |
@Agontuk is there any update on this issue? |
It should be fixed in v5.0.0. Sorry for not being able to fix this sooner. |
When a user opens the app with location services enabled, and the app then registers a
watchPosition
callback, and then the user disables location services, and goes back to the app,watchPosition
never raises an exception. React Native core's navigator.geolocation has this same issue, but I would expectwatchPosition
to raise an exception the same way thatgetCurrentPosition
would. This would be useful for detecting that location services are off so the app could prompt a user to reenable it.The text was updated successfully, but these errors were encountered: