QLocationPermission and background location in Android - 6.8.0
Unsolved
Mobile and Embedded
-
I sometimes need background location for my Android app. However, if I have already requested (and been granted) non-background location, then it does not prompt and denies.
So this always denies without prompt if regular location permission was previously granted:
auto permission = QLocationPermission(); permission.setAccuracy(QLocationPermission::Precise); permission.setAvailability(QLocationPermission::Always); qApp->request...
My guess is that the implementation mixes location and background location logic. While the Android UI does combine these concepts, they are actually entirely separate permissions.
Thanks!