Tidbits of Experience: Unity App on Android Not Showing Permission Request Dialog

It happened to me that an app I was creating required some Android permissions and while it did show the permission dialogs when I first installed it, subsequent builds, with more or different permissions, didn’t pop the dialog. Even after uninstalling and reinstalling the app, nothing happened.

Digging through the AndroidManifest.xml file Unity was generating, I found this line:

<meta-data android:name=”unityplayer.SkipPermissionsDialog” android:value=”true” />

So, to override, make sure you have an AndroidManifest.xml file in your Plugins\Android directory (you can copy the generated file from Temp\StagingArea as a start) and make sure you have the line:

<meta-data android:name=”unityplayer.SkipPermissionsDialog” android:value=”false” />

Under your Application tag.

It will ask for permissions every time you reinstall the app but it should be good from then on out.


Posted in No Category, Practice, Programming, Thinking Out Loud by with comments disabled.