【问题标题】:Firebase Javascript Send Multiple EndpointsFirebase Javascript 发送多个端点
【发布时间】:2018-06-18 11:14:25
【问题描述】:

我有 asp .net 应用程序,它使用 firebase javascipt sdk 向客户端发送通知消息。 我们有 9000 个用户端点。 如何一次向所有用户发送通知消息。

var message = {

to: 'endpoint',

notification: {
    title: message.title,
    body: message.information
}

谢谢你..

【问题讨论】:

    标签: c# firebase push-notification firebase-cloud-messaging


    【解决方案1】:

    可以通过调用其 HTTP 端点来通过 Firebase Cloud Messaging 发送消息。该过程记录在here

    如果您的应用程序的所有用户都可以使用这些消息,您可以考虑让他们订阅特定主题,然后订阅sending a message to that topic

    如果邮件应该单独发送给每个用户,您可以send a message to the individual devices。目前这意味着您需要对 API 进行 9000 次调用,但需要调用 multicast feature is in the works

    【讨论】:

      猜你喜欢
      • 2012-05-04
      • 2020-05-17
      • 1970-01-01
      • 2013-12-27
      • 2014-12-17
      • 1970-01-01
      • 2018-09-23
      • 1970-01-01
      • 2016-06-11
      相关资源
      最近更新 更多