Search Unity

Check Permissions

Discussion in 'Android' started by unitynewb, May 24, 2017.

  1. unitynewb

    unitynewb

    Joined:
    Feb 22, 2009
    Posts:
    235
    Is there a way to check permissions that the user has allowed? I ask because I have an option to take a screenshot and if the user denied permissions it crashes the app due to a permission exception. I know there is a method to check camera permissions, but I am looking for write permissions.
     
  2. K_Bay

    K_Bay

    Joined:
    May 2, 2017
    Posts:
    13
    You can catch exception and handle it properly.
     
  3. unitynewb

    unitynewb

    Joined:
    Feb 22, 2009
    Posts:
    235
    I was just looking for a way to check before the user gets into that option, but you're right I'll just do it that way.