Background location access
TARGET 30 - The following behavior changes apply exclusively to apps that are targeting Android 11 or higher.
To access device location in the background users need to grant ACCESS_BACKGROUND_LOCATION sensitive permission since Android 10.
App targeting Android 11 and above:
i) You can not ask the foreground location and background location at the same time, the system throws an exception.
ii) Requesting ACCESS_BACKGROUND_LOCATION permission redirect the user to the application permission screen to grant permission.
App targeting Android 10:
i) You can ask.
ii) Display system dialog within the application.
To access location in the background, the User must have selected Allow all the time.