How to verify FCM registration token on server?

后端 未结 4 1669
独厮守ぢ
独厮守ぢ 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:22

    One way is to send a message with the dry_run option = true, as is described by AL. in the other answer.

    Another way is to use the InstanceId server API:
    https://developers.google.com/instance-id/reference/server

提交回复
热议问题