-
Notifications
You must be signed in to change notification settings - Fork 59
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
Not enabling 'Precise' location on iOS does not error out #115
Comments
If you can find a solution I will incorporate it into the plugin. This is probably the best place to start looking: background-geolocation/ios/Plugin/Plugin.swift Lines 108 to 127 in fe780a4
|
A temporary fix. What I did is force the user to choose the precision option and always use it when the app is active. |
Describe the bug
On Android, if I don't provide "precise" location data permission (just "approximate"), the
addWatcher
method returns an error in the callback function with the code "NOT_AUTHORIZED", but on iOS, there is no error and tracking starts. We need precise location for our usage.To Reproduce
Steps to reproduce the behavior:
addWatcher
methodExpected behavior
iOS behaves the same way as Android:
error
is present in theaddWatcher
method's callback function if "precise location" is not granted by the userScreenshots
If applicable, add screenshots to help explain your problem.
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: