Reset Permissions like Camera for iOS Apps?

前端 未结 5 405
遇见更好的自我
遇见更好的自我 2020-12-29 19:05

When I develop an app for iOS (iPhone/ iPad) and I need to request permissions. When I use the camera I need to request the camera permission. This can only be done once.

相关标签:
5条回答
  • 2020-12-29 19:29

    Settings > General > Reset > Reset Location & Privacy.

    This will reset all location, camera and microphone permissions. It cannot be done on a per app basis.

    0 讨论(0)
  • 2020-12-29 19:29

    If testing on a real device, uninstalling the app seems to work for me.

    0 讨论(0)
  • 2020-12-29 19:47

    To reset all the Location & Privacy permissions you can go to:

    Settings > General > Reset > Reset Location & Privacy

    To view what Apps have what services and to turn it off for individual services you can go to:

    Settings > Privacy > The service you want to view

    Here you can turn off the service for individual apps, note that this doesn't mean you'll get the popup message again it just means that app will not use that service.

    0 讨论(0)
  • 2020-12-29 19:51

    Another way to reset permissions on iOS simulator is to delete the appropriate database row from the access table in $SIMULATOR_DEVICE_DIRECTORY/data/Library/TCC/TCC.db. This can be done per app / service basis.

    0 讨论(0)
  • 2020-12-29 19:54

    Another way around this is to change your bundle id. With each new bundle id you provide, it is like a fresh install of the app. Remember to change it back to the original bundle id after testing :)

    0 讨论(0)
提交回复
热议问题