简体   繁体   English

重置iOS 7麦克风访问权限

[英]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? 如何重置麦克风访问权限,以便应用程序再次请求麦克风访问权限,就好像它是从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. 您可以在iOS设置中重置您的隐私设置。

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. 至少从iOs 7.1.1开始,有一些开关可以更改每个应用程序的访问权限。

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: 继Stefano的帖子后 - 如果您想直接将用户定向到麦克风设置,那么您可以使用:

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) (至少在iOS 9上 - 如果设置应用程序结构发生变化,那么链接可能需要更改)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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