【问题标题】:How can I check if string is a valid FCM token?如何检查字符串是否是有效的 FCM 令牌?
【发布时间】:2018-04-24 14:22:02
【问题描述】:

如何检查字符串是否为有效的 FCM 令牌。
根据我的经验,FCM 令牌会随着时间而变化。
在我的项目中,我需要使用 Node.js 在服务器端检查令牌是否是有效的。

我该怎么做?

【问题讨论】:

标签: node.js firebase firebase-cloud-messaging firebase-admin


【解决方案1】:

您可以让您使用 Instance ID Service 来查明令牌是否有效。 参考这个链接:https://developers.google.com/instance-id/reference/server

【讨论】:

    猜你喜欢
    • 2020-06-05
    • 2019-11-09
    • 2013-02-13
    • 2011-06-17
    • 1970-01-01
    • 2020-10-25
    • 2011-11-26
    • 2018-03-21
    • 1970-01-01
    相关资源
    最近更新 更多