jphales

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Android runtime permissions #1424
    jphales
    Participant

    Hi larryapple!
    It’s simple enough. You can take a look at the Unity link above.
    You can do it as needed, or even simply at the start of your app by dropping the following in a script.

    Make sure you’re at the top you are :
    #if PLATFORM_ANDROID
    using UnityEngine.Android;
    #endif

    And then, in any function, could even be in your start function include:
    #if PLATFORM_ANDROID
    if (!Permission.HasUserAuthorizedPermission(Permission.Microphone))
    {
    Permission.RequestUserPermission(Permission.Microphone);
    }
    #endif

    That should bring up the default android permission dialogue.

    in reply to: Android runtime permissions #1404
    jphales
    Participant

    So, yes,

    Thanks for the response. I’m glad the plugin works, but for me was a pain to deal with permissions at runtime. Would much rather prefer on install. Don’t know why it changed.

    Thanks for your help!
    Jon

    in reply to: Android runtime permissions #1403
    jphales
    Participant

    Thanks for the very quick response.
    Sorry, I meant the new “embedded JDK”

    I’m not using runtime permissions. Usually the app simply requests permission to use audio on install because of the permissions line in the android manifest – and it’s no longer doing so.

    I guess I can give the runtime permissions a try. I would just prefer the permissions popup on install.

    I’ll give it a try.

Viewing 3 posts - 1 through 3 (of 3 total)