Welcome to Headwind MDM Q&A, where you can ask questions and receive answers from other members of the community.

Please do not post bug reports, missing feature requests, or demo inquiries. If you have such an inquiry, submit a contact form.

0 votes
I am trying to set the location permission of the MDM agent to "Allow all the time" but it's stuck on "Allow only while using the app". On one device it was default set to allow all the time, the other one is stuck on only while using the app. How can I set it to always be allowed?
by (180 points)
It says "Foreground access enabled by admin" while still saying "Allow only while using the app"

1 Answer

0 votes

Location options "Allow only while using the app" and "Allow all the time" were introduced in Android 10 and the option "Allow only while using the app" is the default one. 

Looks like there is an OS bug preventing the administrator app to automatically grant "Allow all the time" permission (android.permission.ACCESS_BACKGROUND_LOCATION permission).

The workaround is to let the user manage the permission manually. 

In the configuration details, set "Permissions for other apps": "Auto-grant all, ask user for the location permission".

by (35.6k points)
After doing that I now have the option to change the location setting, but it automatically changes itself back to allow only while using the app immediately after I select allow all the time.
...