【问题标题】:how can I send fcm using user segment如何使用用户段发送 fcm
【发布时间】:2019-11-04 22:55:53
【问题描述】:

现在我正在使用 POSTMAN 测试 http 请求

**"to": "/topics/all",   ---> ?? how can i write this line??**
"priority": "high",
"notification": {
    "title": "テスト Title",
    "body": "テスト Body"
},
"data": {

    "click_action": "FLUTTER_NOTIFICATION_CLICK"
}

我检查了状态 200 ok 当我使用 firebase 网页发送消息时,它运行良好 但没有firebase云消息服务,它不起作用 在firebase云消息服务中,定位条件为

我想如果我可以用 http 格式编写目标条件,我可以向我的应用发送消息

帮帮我

【问题讨论】:

    标签: http flutter postman


    【解决方案1】:

    您正在寻找的是关键“主题”

    {
      "topic": "all",
      "notification":{
         "title": "テスト Title",
         "body": "テスト Body"
      },
      "data":{
         "click_action": "FLUTTER_NOTIFICATION_CLICK"
      }
    }
    

    【讨论】:

      猜你喜欢
      • 2016-10-08
      • 2017-08-03
      • 2020-11-27
      • 1970-01-01
      • 1970-01-01
      • 2020-10-09
      • 1970-01-01
      • 1970-01-01
      • 2016-12-20
      相关资源
      最近更新 更多