So I using FCM with my Xamarin.Forms app. I'm a little confused on how can I maintain in sync the token generated in my app and the token stored in my app server.
Steps:
- Open the app.
OnTokenRefresh()get a new token.- The new token is send to the app server.
- The app server sends push notifications.
This works perfect, except, that time to time, FCM destroy the token, the app is not running (step 2 not firing), so my app server can't send messages anymore, because is out of sync.
Is there a way to update the FCM token to my app server without open the app?