Is it possible to receive event/notification in my app when user uninstall my application from iPhone?
I need this because i want to clean up some data from address book while user uninstall my app.
Thanks for your help!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, you do not get the opportunity to execute any code when they choose to uninstall your app.
If there is data you add to the address book that you think they may wish to remove, then you should probably provide a way for them to do so, perhaps on a settings page inside your app. The user could be warned to “only remove this data if you intend to uninstall the app” or something like that.
Better still, since the user could always arbitrarily change data in their address book at a future time, and perhaps break your application, a much better practice would be to store any app-related data in the documents directory created automatically for your app, in a plist or sqlite format for example.