New Token FCM

88 views
Skip to first unread message

Caio Merotti

unread,
Jun 16, 2022, 9:12:15 AM6/16/22
to Firebase Google Group
Can a new FCM be randomly generated? 

In the documentation it says that the token is generated when the app is launched or in these 3 cases: 
- The app is restored on a new device;
- User uninstalls/reinstalls the app;
- User clears application data. 

If i have a token that was just generated and I don't do any of these 3 cases above, will the FCM token be the same? Or at some random moment will onNewToken be called and generate a new token?

Carsten Hagemann

unread,
Jun 17, 2022, 9:10:01 AM6/17/22
to Firebase Google Group
If none of these 3 cases applies, your token will remain the same.

I don't have any docs to explictly backup this statement - apart from that only these 3 cases are listed.  It's purely based on my experience (I have never seen a push token "randomly" renewed).

Caio Merotti

unread,
Jun 17, 2022, 5:46:16 PM6/17/22
to Firebase Google Group
Thanks for the explanation, it will make my job easier ;)
Reply all
Reply to author
Forward
0 new messages