My app is targetting API 28. I have a foreground service sending location updates.
The app stops sending locations when the following conditions are met:
- Running on Android 10
- App is in background
- Location Permissions were selected as "Allow only while using the app"
On running
adb shell dumpsys package packageName
I see that
android.permission.ACCESS_BACKGROUND_LOCATION: granted=false
From the documentation, it appears that the "android.permission.ACCESS_BACKGROUND_LOCATION" permission was backward compatible.
How do I fix this issue? Is there a way to disable the tri-state permission request?