March 18, 2016

Unity and permissions in Android 6

I faced with a problem of appearing "ask-permissions" dialog at the starting up of my app.

At first I need to say that I've exported android project and built it manually. I've added few java-libs which use some permissions with protection level "dangerous". I've added them to AndroidManifest as well. My targetSdk parameter is 23. This means I have to ask for permissions at run-time.

I was wondered that "ask-permissions" dialog appeared at the beginning. I spent lot of time trying to understand what happens. As it turned out, Unity brought this behavior as default starting from version 5.2.4.


Well, if you want to disable this feature, solution is very simple.
You need to add this meta-data tag into your AndroidManifest.xml.

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


5 comments:

  1. Lalu situs selanjutnya yang memang akan sangat bagus dan layak untuk dipilih adalah situs yang benar-benar fair. Situs yang fair adalah dari segi penawaran yang ada sehingga
    asikqq
    http://dewaqqq.club/
    http://sumoqq.today/
    interqq
    pionpoker
    bandar ceme
    freebet tanpa deposit
    paito warna terlengkap
    syair sgp

    ReplyDelete
    Replies
    1. Great Article android based projects

      Java Training in Chennai Project Center in Chennai Java Training in Chennai projects for cse The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training Project Centers in Chennai

      Delete
  2. Woderful content. I am regularly follow this blog. Thank you for updating such a good content. Please follow my Travel blog for more information about Eco Park in Kolkata.

    My other posts are:
    Victoria Memorial in Kolkata.
    Scuba Diving in Goa.
    Top visiting places in GOA.
    Calangute Beach in Goa.
    Candolim Beach in Goa.
    Baga Beach in Goa.

    ReplyDelete
  3. Halima telecom charger is the best charger for any mobile phone. They are manufacturing new charger for mobile phone. Halima telecom charger price is so affordable. You can check their charger quality.

    ReplyDelete