I have a Pixel 4 and Android 10 stock. I want to share my location for a few hours with a friend using WhatsApp, but the system only offers me these options for location permission:
- Allow only while the app is in use
- Deny
But there is no "Allow all the time". I'm afraid that it won't work without that permission.
I guess Google removed that option for that particular application, other apps have it enabled. Is that right?
PS: I'm aware of who owns WhatsApp and their issues.
adb shell
and execute:appops set com.whatsapp COARSE_LOCATION allow; appops set com.whatsapp FINE_LOCATION allow; appops set com.whatsapp GPS allow; pm grant com.whatsapp android.permission.ACCESS_COARSE_LOCATION; pm grant com.whatsapp android.permission.ACCESS_FINE_LOCATION
Pixel 2
and already checked it. I didn't goes in deep about coding implementation but yes it is working even in background.