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."
source share