05-17-2023 01:48 AM - edited 05-17-2023 01:56 AM
We are using a less common Android permission request (REQUEST_IGNORE_BATTERY_OPTIMIZATIONS) in order to support downloading multiple large 360 videos to the Quest 2 (total ~30GB).
This permission request appears in a different UI to the standard permissions, and we are finding that it only appears correctly approx 50% of the time. The other 50% of the time the permission prompt background appears, but without the text or buttons. This is causing issues as without accepting this permission, our downloads will fail.
Looks like this when text doesn't appear:
Should look like this:
Given the size of the download, the user will take the headset off whilst the download completes. We require this permission in order to prevent the device from entering doze or app standby and killing the app/download manager.
There is no error or log message shown in logcat when the dialogue does not display correctly. We’ve attempted various methods of requesting this permission and it still only appears 50% of the time. It also seems to open the Oculus Dashboard menu, so the app can’t be interacted with until the Oculus button is pressed to close the dash.
Ideally, we'd like it to appear in the standard permissions screen shown below, or to appear in the current UI but with the text showing every time. Any ideas?