I am generating firebase token using the following line of code
String refreshedToken = FirebaseInstanceId.getInstance().getToken();
I get the token , which I store in the database. I'am able to use this to send notification to individual devices.
But after a few days I get the message as 'Unregistered registration token' and the notification is not delivered.
can you please solve the problem.
Also is there a way to check the validity/registration of a token in firebase console?