Pregunta

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.

¿Fue útil?

Solución

Settings > General > Reset > Reset Location and Privacy

Otros consejos

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.

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

On iOS 10.2.1:

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

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top