Reputation: 2779
Is there a way to catch the app_remove event fired in my Android app? In any way, when the application is uninstalled, there is data that I need to delete from the device during uninstallation. Is there any way I can do this with firebase app_remove or otherwise?
What I mean by data here is that the user makes some settings on his phone together with the application. I need to get these settings back as soon as the app is deleted. Storage has nothing to do with it.
Upvotes: 0
Views: 212
Reputation: 1006944
Is there a way to catch the app_remove event fired in my android app?
No, sorry.
when the application is uninstalled, there is data that I need to delete from the device during uninstallation
Store the data in locations that will be cleaned up automatically when the app is uninstalled. That includes locations obtained from Context
, such as getFilesDir()
, getCacheDir()
, and getExternalFilesDir()
.
Upvotes: 1