unity3d - Android not requiring permissions - Marshmallow 6.0.1 Unity -


i'm building cardboard app , testing on nexus 6p. problem have when install app, doesn't ask permissions. in manifest have this:

<uses-permission android:name="android.permission.read_external_storage" /> <uses-permission android:name="android.permission.write_external_storage" /> 

then if want download file internet in app, doesn't work. doesn't create com. folder.

i have go manually app info , check storage permission.

it's weird because when building app gearvr , testing on note 4, asks permission (in note 4 use sd card, in nexus 6p internal)

why happening?

thank you.

for android 6+ need request permissions @ runtime, not startup. case if considering app google play featuring,

in short, need specify permission in tour manifest, , include following in application tag

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

then, request permission(s) @ runtime via android.

there great little plugin @ https://www.assetstore.unity3d.com/#!/content/62735


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -