I am making an Android app that uses Firebase Cloud Messaging.
Whenever a new token is generated, the onTokenRefresh() function of a class extending FirebaseInstanceIdService is called.
However I noticed that the first time the token is generated, this function is not called. I want to send the first token to my Server. How can I implement this?