Is it possible to reset the privacy settings in iOS?
Asked Answered
E

1

91

In order to test access granting to the iOS calendar, I need to reset the privacy settings on my test device.

However, every time I install it on the device it remembers the old privacy settings and does not show the alert view to ask me if I grant access. Deleting the app and reinstalling it does not change this fact.

Is there a way to make iOS forget it knows my app and ask me again?

Eparchy answered 26/9, 2012 at 6:56 Comment(10)
I disagree that this is off-topic. This issue comes up all the time during iOS UI testing. If the question included 'programmatically' or 'automatically' and include a calabash-ios or uiautomation tag, would it be acceptable?Chibcha
This question is not off-topic at all, and it would be a shame if Apple adds a new way to reset permission for a single app, and no one could add a new answer because it's locked.Ascendant
This question is not off-topic, it's something app developers need to do at times.Fauch
This is not off topic and maybe it is about time that Stack Overflow 'supervisors' will stop putting people down and restrict good and obviously interesting questions judging by their score.Screw
@Screw I've voted to reopen this. Hopefully it gets reopened.Valida
I've edited to add reasons why this is important for devs and why it should not be closed. Hopefully it passes peer reviewThorium
This is really a developer issue: The question affects developers/testers who need to understand & test the behavior of an app when the privacy settings are not yet set for the first time. (Deleting & reinstalling the app does not affect the privacy settings.)Jolee
Reworded the question and flagged for reopen.Mithridate
This is clearly not off topic in a practical sense, as this is core activity for iOS development, nor is it off topic in a letter of the law sense, as an iOS test device cannot in any way be called general computing hardware for a question tagged as iOS.Electromechanical
Here a little hack for u guys: https://mcmap.net/q/242526/-ios-resetting-granting-access-to-remindersChi
S
154

Start the "Settings.app", go to General > Reset > Reset Location & Privacy.

This resets the privacy settings for all apps, but as far as I know, there is no way to reset it for a single app. Even removing the app and installing it again does not help.

Stegall answered 26/9, 2012 at 7:7 Comment(6)
This is the same case in iOS 7.Fuzz
This is really useful for testing purposes, particularly when trying to test all the edge cases of privacy permissions. Thanks!Sacrificial
There is a hack way that one of the good guys working with me found - it is a hack, but it works great to reset single application settings if you need for example to test your application for permissions.Screw
@Screw What is the hack?Snuck
@Screw Yes, what is the hack? :)Alameda
Sorry for the delay. You remove your application, then reset your device (yes total power off and boot). Now you go the the time / clock and set it to manual and set the date to be at least 1 day ahead - I usually select 2 days to be on the safe side. Finally after it is all done, you reboot again and install the application - all settings should now be reset. Unfortunately you need to keep doing it and advance the dayes every time - very tedious. What is the explanation? Apparently Apple keeps some sort of consistency data that lasts for 24 hours of activity. Hope that helps.Screw

© 2022 - 2024 — McMap. All rights reserved.