Reputation: 150
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.
Please someone can explains this to me ?
Upvotes: 2
Views: 344
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