I am making an Android application that uses Firebase Cloud Messaging.
Whenever a new token is generated, the onTokenRefresh () function of the class that extends FirebaseInstanceIdService is called.
However, I noticed that when the token was first created, this function is not called. I want to send the first token to my Server. How to implement this?
source
share