I am the new for FCM. Here are some questions about the registration token:
- Is the registration token generated by the FCM connection server?
- Does the token change periodically in the connection server?
- When?
- Will it force the
onTokenRefresh()
in the app to be called?
I have googled for a week but didn't get any details. Please help. Thanks.
No. It gets generated by the FirebaseInstanceID. The way I understand the flow of event on first time registration:
I think the onTokenRefresh() docs pretty much answers this.
See this part of the docs for more details.