【问题标题】:How to monitor FCM token refresh with phonegap push plugin如何使用 phonegap 推送插件监控 FCM 令牌刷新
【发布时间】:2018-06-11 12:19:26
【问题描述】:

正如这里所说的https://firebase.google.com/docs/cloud-messaging/js/first-message#monitor-token-refresh FCM 令牌在某些情况下可以刷新,但我在 phonegap 推送插件文档中看不到任何处理它的内容。 有人知道这个插件是怎么解决的吗?

【问题讨论】:

    标签: firebase firebase-cloud-messaging phonegap-plugins phonegap-pushplugin


    【解决方案1】:

    我从 phonegap github 得到的答案:https://github.com/phonegap/phonegap-plugin-push/issues/2415 声明:

    如果有令牌刷新,则会触发 on('registration') 事件。 每次收到注册事件时,您都需要检查是否 值与您之前的值不同。如果有,请发送至 服务器。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-09-19
      • 1970-01-01
      • 2017-03-30
      • 2018-11-27
      • 2017-06-27
      • 1970-01-01
      • 2020-07-12
      相关资源
      最近更新 更多