Disable permission dialog in Unity 5

Hi all,

Unity 5.3.2p2 came with the following change:

Android: Marshmallow - Added the
possibility to disable the permission
dialog by adding metadata to the
activity.

What metadata needs to be added? The change doesn’t reference a bug number.
We have our own system in place to ask for the required permissions so we don’t need them all up front.

Thanks in advance,

Stockx

Did you find a solution?

Hello, what does it mean exactly ? To disable the permission popup at the start and ask the permission later ?

2 Answers

2

Apparently you need to add the following to your manifest file:

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

Thanks you, exactly what need! It's works like a charm. I set this metadata in the LAUNCHER Activity

Hi! I know I'm late, but is this allowed by the Android guidelines? It's a pretty convenient trick, but I doubt it's allowed by Google's transparency policies. Also, I tried adding this line to the manifest and didn't work.

FYI it works in 2017.3 by putting that line in the application section. This became an issue for us because Google now requires that we target Android 8.0 (API level 26) to submit apps to the play store, and for all updates as of November 1, 2018. So that means apps that target 5.1, before the new permission system went into effect, will now have to adapt.

@Stockx Not working. Help me please.