Event When you uninstall an application from iPhone

I want to hit a web service when a user uninstalls an application from their device. Its easy to remove this user from db. Can anyone here help me? Thanks in advance...

+4
source share
3 answers

Generally speaking, what you are trying is probably inappropriate. Even if you could find out when the user uninstalled the application, how would you deal with the situation when the user installed the application again and started it? You also don’t know why the user uninstalled the application (maybe they just want to do it temporarily in order to free up space on their device? Perhaps their device was stolen and they are reinstalling to a new or updated device?)

If you separate your problems (the client has / does not have a mobile application, vs the client has / does not have an active account), you can manage all these scenarios in a much more reliable way.

Using the analytics package in the application (for example, Google Analytics, Parse or Flurry to indicate several) will give you an idea of ​​your user behavior and, perhaps, based on this usage data, you can run handlers. For example, if you see that a user has not used your application for a certain period, can you send them an email or send a push reminder to remind them? Perhaps you can send them an email to notify them. "You are not logged in after 60 days, if you do not use your account in the next 30 days, it will be deleted. Click here to reactivate your account."

+3
source

No I can not. There is no specific notification when uninstalling the application. If you must talk to the server, suspend inactive accounts after a predetermined period.

Another thing you can try is to check the UIApplicationWillTerminateNotification notification. Save the state of your application on your servers, when it goes to the background and crosses your fingers, your user will not delete your application when it is not running. Because as soon as your application is closed, you no longer have control. This is the behavior of iOS prior to iOS 6.

0
source

It is not possible to find out if the application is removed from the device or not, because the delegate method does not start when the application is deleted.

Hope this helps you.

0
source

Source: https://habr.com/ru/post/1479880/


All Articles