How to verify FCM registration token on server?

后端 未结 4 1668
独厮守ぢ
独厮守ぢ 2020-11-29 09:43

I got my Firebase Cloud Messaging registration token for web push. And I sent this to my server to save in database for later push. But how can I verify this token is valid

4条回答
  •  生来不讨喜
    2020-11-29 10:24

    According to the docs, you can use validate_only for testing the request without actually delivering the message.

    https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages/send

提交回复
热议问题