Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can code be called when my Android application is uninstalled?

Tags:

android

Does anyone know if a specific method is available to be overridden when my application is uninstalled? It would be nice to remove these users from the server side database when this occurs.

like image 599
Kevin Parker Avatar asked Feb 27 '11 09:02

Kevin Parker


People also ask

Can we identify users who have uninstalled our application Android?

Using FCM (Firebase cloud messaging) , yes we can track uninstalled users via FCM and get the users info that is required to engage them again. To send push notifications to users, we need FCM Id at our backend system.

How do I trace uninstalled apps?

Open the Google Play app on your Android phone or tablet, and tap on the menu button (the three lines that show up in the upper left corner). When the menu is revealed, tap on "My apps & games." Next, tap on the "All" button, and that's it: you'll be able to check all your apps & games, both uninstalled, and installed.

What happens when an app is uninstalled?

Yes, on Android devices "uninstall" is the same thing as "delete". When you remove an app you purchased, you can still reinstall it without having to pay again. However, deleting apps on Android won't always delete all of the app's files and associated data.


1 Answers

Unfortunately there is currently no way for an Android package to execute code when it is removed. However, you can register a BroadcastReceiver for ACTION_PACKAGE_REMOVED in a different package that will be called when packages are removed from the phone.

Also see this question.

like image 64
Josef Pfleger Avatar answered Oct 18 '22 10:10

Josef Pfleger