2

I need to check if a token is still valid before sending an FCM notification with cloud functions. How can I do it ?

Manatea Vagner
  • 111
  • 1
  • 9
  • 1
    When you call the API to send a message to tokens, it'll tell you which tokens have expired. That is the most common way to clean up expired tokens. See https://stackoverflow.com/questions/49049399/verify-stored-firebase-fcm-tokens If you want to make an explicit, additional call just for the check, see: https://stackoverflow.com/questions/50739301/fcm-verify-device-token-before-sending-push-notification-using-php – Frank van Puffelen Feb 09 '21 at 15:53

0 Answers0