accessBackgroundLocation constant
AndroidPermissionDef
const accessBackgroundLocation
android.permission.ACCESS_BACKGROUND_LOCATION
Required for location access while the app is in the background. Runtime permission: true Since SDK: 29 Group: location_always Associated service: location Note: Request either ACCESS_FINE_LOCATION or ACCESS_COARSE_LOCATION first before requesting this permission.
Implementation
static const accessBackgroundLocation = AndroidPermissionDef(
'android.permission.ACCESS_BACKGROUND_LOCATION',
runtime: true,
sinceSDK: 29,
group: 'location_always',
service: AssociatedService.location,
keywords: {'gps', 'maps', 'geolocation'},
legacyKeys: {
'android.permission.ACCESS_FINE_LOCATION': 28,
},
docNotes: {
'Required for location access while the app is in the background',
'You need to request either ACCESS_FINE_LOCATION or ACCESS_COARSE_LOCATION permission first before requesting ACCESS_BACKGROUND_LOCATION.',
},
);