Imbru Imbru - 1 year ago 279
Android Question

FirebaseInstanceIdService.onTokenRefresh never called

I have implemented Firebase for cloud messaging :

I have follow all the steps but FirebaseInstanceIdService.onTokenRefresh is never called.

the only message from firebase on the log is :

FirebaseInitProvider: FirebaseApp initialization unsuccessful

What can i do to get this token?

Answer Source

Setup the firebase sdk and generate a google-services.json and include it in your project. As described in this guide.