Reputation: 2801
My application use the keychain to store users and passwords. When I remove and reinstall my app, the keychain is not clean, keys are always in the application.
How to detect the removing of my app and use my cleanKeyChain method ?
Upvotes: 1
Views: 1098
Reputation: 1441
There is no observer to get notified if the app gets deinstalled. If the app is not running at that time its useless anyway. You can use bundle props (fresh = true on 1st run) and remove / add things again with a reinstall.
Upvotes: 3