Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to handle app uninstallation in Flutter/Dart?

Can anyone tell me if it is possible in Flutter or more generally in mobile development to handle when the user uninstalls the app so that we can perform some actions? I know that we can easily detect when the app switch to the background but I don't figure out if detecting the uninstallation is actually possible.

like image 412
Tristan Bilot Avatar asked Nov 19 '20 14:11

Tristan Bilot


People also ask

What is find uninstall app in Flutter?

There is not a quick way to handle the uninstallation of the app. But you can design a notification system, and push notifications periodically. Firebase will respond error message with "NotRegistered". This means the user is uninstalled your app.

How do I delete apps on Flutter?

Search path where you have unzipped flutter SDK files. If you know where you have unzip flutter sdk just go to that path & delete it and that's it.

Can you track app uninstalls?

AppGain.io. AppGain platform works on both Android and iOS and will help you to know who deleted your app, re-target your app uninstallers and reduce churn rates as well as to increase your retention rates.

How do you know my app is uninstalled from the device?

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.


2 Answers

for iOS you need a APNs (Apple Push Notification service), this way says you that the token is invalid, so, it mean that the device already hasn't the app

check out: How To Track App Uninstall Effectively

like image 63
Nuqo Avatar answered Oct 17 '22 16:10

Nuqo


@Nuqo is right. There is not a quick way to handle the uninstallation of the app. But you can design a notification system, and push notifications periodically. Firebase will respond error message with "NotRegistered". This means the user is uninstalled your app.

Read more from the official document.

like image 35
Akif Avatar answered Oct 17 '22 16:10

Akif