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
ios ios4 settings core-location cllocationmanager
taber
source share