Skip to content

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

Open
komaxx wants to merge 1 commit intoLyokone:masterfrom
komaxx:feature/android_request_coarse_and_fine_location
Open

Added requesting for coarse location in addition to precise location permission#990
komaxx wants to merge 1 commit intoLyokone:masterfrom
komaxx:feature/android_request_coarse_and_fine_location

Conversation

@komaxx
Copy link
Copy Markdown

@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: [...]

@docs-page
Copy link
Copy Markdown

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