iOS Calendar Access Permission Dialog, force it to appear?

醉酒当歌 提交于 2019-11-26 13:57:20

问题


I've written an app that requests access to the iPad's calendar. Under iOS 6, a system dialog appears that asks the user if that's okay.

Problem is, I can't replicate that situation once it's happened. For testing purposes, I want to force that dialog to come up consistently. Instead, the OS caches previous settings and doesn't bring up the dialog again. This is still the case even if I delete the app off the iPad and re-install. (Changing the app name and bundle fixes the problem, but I don't want to do that every time I test.)

Does anyone know how to force this to appear?

Thanks.


回答1:


Settings > General > Reset > Reset Location and Privacy




回答2:


You can Reset Location and Privacy as suggested by Greg Maletic but if you do not want to reset all your apps, you can just change the bundle identifier of your app.




回答3:


On iOS 9 and later version,uninstall and install the app,access permission dialog will appeared. But iOS 8 will remember what you choose.




回答4:


On iOS 10.2.1:

I simply uninstall and reinstall the app again, the permission dialog appeared again.



来源:https://stackoverflow.com/questions/13635288/ios-calendar-access-permission-dialog-force-it-to-appear

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!