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

Added requesting for coarse location in addition to precise location permission #990

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

komaxx
Copy link

@komaxx komaxx commented Aug 28, 2024

See: https://developer.android.com/develop/sensors-and-location/location/permissions#approximate-request

To handle this potential user behavior, don't request the ACCESS_FINE_LOCATION permission by itself. Instead, request both the ACCESS_FINE_LOCATION permission and the ACCESS_COARSE_LOCATION permission in a single runtime request. If you try to request only ACCESS_FINE_LOCATION, the system ignores the request on some releases of Android 12. If your app targets Android 12 or higher, the system logs the following error message in Logcat: [...]

Copy link

docs-page bot commented Aug 28, 2024

To view this pull requests documentation preview, visit the following URL:

docs.page/lyokone/flutterlocation~990

Documentation is deployed and generated using docs.page.

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.

1 participant