ff .n
ff .n

Reputation: 211

detect user when uninstall app in flutter

I want in flutter app, when user uninstall app, detect user and send message for her/his. I use firebase and have private server and database(I don't have database in firebase). how can do it?

Upvotes: 1

Views: 2909

Answers (1)

Gabe Sechan
Gabe Sechan

Reputation: 93614

There's no way to do this on the client. When the app is uninstalled, no notification is given to it. You could do it in the backend by using a keep-alive (have the client send a message one a day to the server. If you don't get a message within about 30 hours, its almost certainly been uninstalled (or the user has his phone off)). But there's no way to do it client side.

Upvotes: 4

Related Questions