Valdèse Kamdem
Valdèse Kamdem

Reputation: 150

Can't handle refreshed token in custom FirebaseInstanceIDService Android

When i'm debuging, this part of application doesn't execute, so i don't know when the token is refreshed, Even when i clear data or uninstall application before debug.

This following image presents my code.

Break points

Please someone can explains this to me ?

Upvotes: 2

Views: 344

Answers (1)

Sourabh Saldi
Sourabh Saldi

Reputation: 3587

OKay lets go step by step

First of all in your Activity call this piece of code and make sure your token is generated (Assuming you have done nothing wrong with manifest and other configs like json files etc.)

FirebaseInstanceId.getInstance().getToken();

If you get token that means your code is fine but you are unable to debug for some reasons

If this is not working you should go back to google documentation and match your steps

Happy coding!!

Upvotes: 2

Related Questions