简体   繁体   English

删除iOS7麦克风权限以测试权限下降

[英]Remove iOS7 Microphone permission in order to test permission decline

New in iOS7 (I believe) the user must give permission for the app to use the microphone. iOS7的新功能(我相信),用户必须授予该应用使用麦克风的权限。 This is a similar request as when the app wants to get location information. 这与应用想要获取位置信息时的请求类似。

I was asked once for permission. 我曾被要求获得许可。 Now, I'd like to test my app to see how it reacts when the user declines this permission. 现在,我想测试一下我的应用程序,以查看用户拒绝此权限时它的反应。 I've deleted the app from the phone, but I'm not asked for permission again. 我已经从手机中删除了该应用程序,但不再再次要求获得许可。

Any idea how to clear this permission over and over so that I may test when this permission is requested and how the app reacts when it's denied. 任何想法如何一遍又一遍地清除此权限,以便我可以测试何时请求此权限以及应用程序在被拒绝时如何反应。

设置>常规>重置>重置位置和隐私

Go to privacy section of the settings app, there will be an option for microphone, turn 'off' your app. 转到设置应用程序的“隐私”部分,会有一个麦克风选项,“关闭”您的应用程序。 Then kill you app and start fresh. 然后杀死您的应用程序并重新开始。

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

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