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 ability to skip checking access background permission in android #930

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

rasuldev
Copy link

We don't need ACCESS_BACKGROUND_LOCATION permission for most cases (so user can use location tracking without enabling location permission all the time). Application can continue to get location in background mode when location service is started in app:
изображение

flutterlocation library works perfectly without ACCESS_BACKGROUND_LOCATION if we skip permission checks in enableBackgroundMode method. In this PR we added a boolean parameter checkBackgroundPermissions. If it is false then permission check is skipped.

@rasuldev
Copy link
Author

изображение

@memarv
Copy link

memarv commented Jul 12, 2024

@bartekpacia This is very important PR. This plugin with required ACCESS_BACKGROUND_LOCATION permissions is useless in most cases. If this solution is wrong, you need to find another way to solve this problem.

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.

3 participants