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

Correction to iOS permission check #330

Closed

Conversation

evan-masseau
Copy link
Contributor

Fixes #329
In iOS, you only ever need "While in Use" permission to use "startUpdatingLocation", whether or not background updates are enabled.
The "always" permission is used for things like startMonitoringSignificantLocationChanges; services that wake up your application even if it is not running in the background or foreground.
https://developer.apple.com/documentation/corelocation/choosing_the_location_services_authorization_to_request

Changes Proposed in this pull request:

  • Only check for Always permission if trying to do ListenForSignificantChanges

An alternative proposal might be to add a property to the ListenerSettings object which lets you override which type of permission check to perform.

…Location", whether or not background updates are enabled.

The "always" permission is used for things like startMonitoringSignificantLocationChanges; services that wake up your application even if it is not running in the background or foreground.
@evan-masseau
Copy link
Contributor Author

Never mind, I mistook ListenForSignificantChanges for Region monitoring, there's still a permission issue but this ain't the fix.

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

Successfully merging this pull request may close these issues.

Incorrect permission check on iOS for StartListeningAsync + AllowBackgroundUpdates
1 participant