Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

iOS skip permission dialog on startup

Discussion in 'iOS and tvOS' started by vladimir-skoupy, Nov 8, 2017.

  1. vladimir-skoupy

    vladimir-skoupy

    Joined:
    Mar 20, 2014
    Posts:
    1
    Is there a way to skip the iOS permission dialog on startup of Unity3d application? I need to ask for the permission only when it is really needed.

    I need camera permission, but only when user wants to access certain part of the application.

    I found that you can use meta-data for Android.

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

    Is there something simmilar I can use on iOS?

    Thanks.
     
  2. inkredibl

    inkredibl

    Unity Technologies

    Joined:
    Nov 11, 2015
    Posts:
    21
    Hey Vladimir,

    I don't think iOS permission dialog comes up before you start using the camera. If that's not the case then I'll need more details, preferably in the form of a bug report. Otherwise just make sure you're not trying to use any camera-related Unity API in the part of your app that does not need camera access.
     
    vladimir-skoupy likes this.