Hasan Kucuk
Hasan Kucuk

Reputation: 2779

Can I see on the application that the app_remove event is triggered in my Android application?

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

Answers (1)

CommonsWare
CommonsWare

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

Related Questions