【问题标题】:Set user_property to send notification with FCM设置 user_property 以使用 FCM 发送通知
【发布时间】:2018-02-15 21:56:07
【问题描述】:

我将 Firebase 云消息传递用于 PushNotification 服务。 在 Firebase 控制台中,我可以向特定的 user_property 发送通知。

FireBase Push Notification Console

但我想从网络服务器发送,如何在我的请求中设置 user_property?

【问题讨论】:

    标签: node.js firebase push-notification firebase-cloud-messaging firebase-notifications


    【解决方案1】:

    此选项目前仅在通过 Firebase 通知控制台发送消息时可用。

    为了从您自己的服务器上执行此操作,我能想到的唯一解决方法是,您跟踪每个用户的类似属性并查询相应的令牌并相应地向他们发送消息。

    【讨论】:

      猜你喜欢
      • 2021-07-23
      • 1970-01-01
      • 2017-04-27
      • 2021-04-06
      • 2020-11-27
      • 1970-01-01
      • 1970-01-01
      • 2021-01-07
      • 2016-12-20
      相关资源
      最近更新 更多