2

How can I check if a string is a valid FCM token.
In my experience the FCM token changes over the time.
In my project, I need to check if a token is a valid one in the server side using Node.js.

How can I do it?

Doug Stevenson
  • 297,357
  • 32
  • 422
  • 441
Valeri
  • 1,072
  • 5
  • 14
  • 31
  • Possible duplicate of [How to verify FCM registration token on server?](https://stackoverflow.com/questions/41552610/how-to-verify-fcm-registration-token-on-server) – AL. Apr 24 '18 at 21:26

1 Answers1

1

You can make you use of the Instance ID Service to find out whether the token is valid or not. Refer to this link: https://developers.google.com/instance-id/reference/server

Umang
  • 966
  • 2
  • 7
  • 17