Detect if an app was uninstalled

前端 未结 4 1629
忘了有多久
忘了有多久 2021-01-17 15:34

Is there a way to get a system notification when an app has been uninstalled?

I would like to maintain a table of all clients\' info currently using my app. However

4条回答
  •  余生分开走
    2021-01-17 16:20

    Android doesn't provide an inbuilt function for tracking the app uninstall.

    Notification can be used as an alternate way to track the app uninstall. For this send notification on the app and track the status of the notification. Count the number of undelivered notification for a particular time period. If status of undelivered notification doesn't change in that particular time period, then consider that the app has been uninstalled from the device.

    For example, i have used a cron script which run every 3 days and check the status of last 10 notifications delivered to the device (2 notifications are sent in a day). If all of these 10 notifications have status "undelivered", then the app is considered to be uninstalled from the device.

提交回复
热议问题