I am very new in mobile development. I am using ionic react. Currently I feel very confused about the push notification.
What I understand the working flow is:
there are client side sdk (ionic app with capacitor firebase cloud messaging) and server side (node.js with firebase admin sdk)
when the user install the app and logged in, then it will send to my server it’s device token at once, I will save his device token in my user database. When I want to send this user message, then I use the package: firebase admin sdk.
My question is:
what happened if the user uninstalled the app? How to detect whether the user uninstalled the app?
which package should I use in my node.js server side? Is it the “firebase admin sdk”?
(P.S I am not sure, if the working flow correct or not. )
Thanks very much for the help!