简体   繁体   中英

Resetting iOS 7 microphone access permission

How do I reset the microphone access permission so that the app will ask for microphone access permission again as if it were downloaded fresh from the App Store?

Reinstalling the app does not accomplish what I need. When I set the permissions in Settings->Privacy->Microphone, I can only turn permissions on or off. I need to reset it so that it asks for permissions again.

You can RESET your privacy settings in iOS Settings.

Settings > General > Reset > Reset Location and Privacy.

NOTE: Privacy settings for all apps will be reset.

At least starting from iOs 7.1.1 there are switches to change access permission for every single app.

Look in: Settings->Privacy, select the kind of subsytem of your interest ( eg: microphone ), you will see your app in the list. Change the value of the selector according to your needs.

Have a nice day, Stefano

如果您更改了捆绑包标识符,那么还会重置您的应用的权限。

Permissions for an uninstalled app are reset after a day.

So, if it is not urgent, you can wait for it reset. I know this is not an ideal solution but it is app specific

Following on from Stefano's post - if you'd like to direct your user directly to the microphone settings then you can use:

let app = UIApplication.sharedApplication()
app.openURL(NSURL(string:"prefs:root=Privacy&path=MICROPHONE")!)

(at least on iOS 9 - if the Settings app structure changes, then the link will likely need to change)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM