locationAlways constant
PermissionWithService
const locationAlways
Permission for accessing the device's location when the app is running in the background.
Depending on the platform and version, the requirements are slightly different:
Android:
- When running on Android 10 (API 29) and above: Background Location Permission.
**Please note**: To request this permission, the user needs to grant foreground location permissions first. You can do this by using either [Permission.location] or [Permission.locationWhenInUse]. Then, requesting [Permission.locationAlways] will show an additional dialog or open the location permission app settings, allowing the user to change the location access to 'allow all the time'. - When running below Android 10 (API 29): Fine and Coarse Location
iOS: CoreLocation - Always
Implementation
static const locationAlways = PermissionWithService._(4);