iOS Calendar Access Permission Dialog, force it to

2019-01-08 21:42发布

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.

4条回答
倾城 Initia
2楼-- · 2019-01-08 22:18

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.

查看更多
Explosion°爆炸
3楼-- · 2019-01-08 22:24

Settings > General > Reset > Reset Location and Privacy

查看更多
啃猪蹄的小仙女
4楼-- · 2019-01-08 22:27

On iOS 10.2.1:

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

查看更多
SAY GOODBYE
5楼-- · 2019-01-08 22:33

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

查看更多
登录 后发表回答