How can an app detect that it's going to be uninstalled in Nativescript?


Is possible detect if the user will remove the APP in Nativescript?

I need it to unsubscribe the users in the topics of Firebase.



I don’t think it is not possible to detect uninstallation of own application even in native android.

We can only detect uninstallation of other applications by listening to ACTION_PACKAGE_REMOVED.


you don’t have to worry about unsubscribing from firebase if user uninstalls your app.