How to tell an iOS device to stop remembering / forgetting location services settings for a specific application

I want to test the "first time" application installation behavior with respect to location services. The problem is that the iPhone 4 Settings application β€œremembers” the preferences of my application location services even after I uninstall the application and turn on the phone’s power.

Here is what I tried:

Open Settings.app - note that local services are currently disabled for my application Uninstall the application Electric phone Open Settings.app - see that the application is not in the list Create / run my application

Then I got a "general error" when trying to check location services:

Error Domain=kCLErrorDomain Code=1 "The operation couldn't be completed. (kCLErrorDomain error 1.)

So, I returned to Settings.app and saw that my application is now there, disabled.

I believe error code 1 is kCLErrorDenied, right?

Does anyone know of a testing method as a β€œnew” application installation? I would prefer not to reinstall the OS or buy a new device every time. :)

Thanks!

Update: In addition, as shown in my comment below, this can be done by resetting ALL location alerts (for all applications) by going to Settings.app β†’ General β†’ Reset (way below) β†’ Reset Location Alerts

+6
ios ios4 settings core-location cllocationmanager
source share
2 answers

The only way I know (besides wiping the device) is to add a new package identifier to the application.

+1
source share

Taber should get a loan or this - his answer helped me a lot.

Settings.app β†’ General β†’ Reset β†’ Reset Location Alerts

+5
source share

All Articles