Oh Danny Boy
Oh Danny Boy

Reputation: 4887

Core Location not requesting user permission

An application I was testing asked for user location on first device launch. I have uninstalled the application, deleted the build folder, and cleaned all targets, but core location never requests permission again. It is just off and must be enabled in the users settings. Any idea why the users choice would remain persistent even after the application was uninstalled? Very weird behavior, worried it may get me rejected for the store.

Upvotes: 4

Views: 925

Answers (1)

Richard J. Ross III
Richard J. Ross III

Reputation: 55573

Not many people know this, but after you uninstall an application, that application's documents and preferences are still stored on the device, here:

/var/mobile/Library/Safe Harbor/myappidentifier/Container/

in my opinion, this was not a wise move by apple, as that could have security risks, as the one you have explained above.

If an app is re-installed, iOS automatically copies those preferences back into the appropriate folder. That is the cause of the behavior you are seeing.

Upvotes: 5

Related Questions