简体   繁体   中英

Is there a way in Android to detect that my App is getting uninstalled?

I want to trigger the logout process for the user in case the user uninstalls my app. This way I want to ensure that I reach the user via other means like SMS / email instead of sending app Notification.

Is it possible to run some code just before uninstallation of my Android App ?

Is it possible to run some code just before uninstallation of my Android App?

No. You can get the broadcast for any other package getting uninstalled but never for your own package.

But you can observe other packages being removed by registering for this event.

android.intent.action.PACKAGE_REMOVED

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM