flutterlocation icon indicating copy to clipboard operation
flutterlocation copied to clipboard

Added ability to skip checking access background permission in android

Open rasuldev opened this issue 1 year ago • 2 comments
trafficstars

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 avatar Feb 26 '24 19:02 rasuldev

изображение

rasuldev avatar Feb 26 '24 20:02 rasuldev

@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.

memarv avatar Jul 12 '24 10:07 memarv