• <bdo id='W3ukd'></bdo><ul id='W3ukd'></ul>

    <i id='W3ukd'><tr id='W3ukd'><dt id='W3ukd'><q id='W3ukd'><span id='W3ukd'><b id='W3ukd'><form id='W3ukd'><ins id='W3ukd'></ins><ul id='W3ukd'></ul><sub id='W3ukd'></sub></form><legend id='W3ukd'></legend><bdo id='W3ukd'><pre id='W3ukd'><center id='W3ukd'></center></pre></bdo></b><th id='W3ukd'></th></span></q></dt></tr></i><div id='W3ukd'><tfoot id='W3ukd'></tfoot><dl id='W3ukd'><fieldset id='W3ukd'></fieldset></dl></div>

    <small id='W3ukd'></small><noframes id='W3ukd'>

    <legend id='W3ukd'><style id='W3ukd'><dir id='W3ukd'><q id='W3ukd'></q></dir></style></legend>

    <tfoot id='W3ukd'></tfoot>

      1. FCM - 以编程方式向用户细分发送推送通知

        时间:2023-07-30

              • <i id='YJV9p'><tr id='YJV9p'><dt id='YJV9p'><q id='YJV9p'><span id='YJV9p'><b id='YJV9p'><form id='YJV9p'><ins id='YJV9p'></ins><ul id='YJV9p'></ul><sub id='YJV9p'></sub></form><legend id='YJV9p'></legend><bdo id='YJV9p'><pre id='YJV9p'><center id='YJV9p'></center></pre></bdo></b><th id='YJV9p'></th></span></q></dt></tr></i><div id='YJV9p'><tfoot id='YJV9p'></tfoot><dl id='YJV9p'><fieldset id='YJV9p'></fieldset></dl></div>

                <tfoot id='YJV9p'></tfoot>
                  <bdo id='YJV9p'></bdo><ul id='YJV9p'></ul>
                  <legend id='YJV9p'><style id='YJV9p'><dir id='YJV9p'><q id='YJV9p'></q></dir></style></legend>

                  <small id='YJV9p'></small><noframes id='YJV9p'>

                    <tbody id='YJV9p'></tbody>
                  本文介绍了FCM - 以编程方式向用户细分发送推送通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我能够从 Firebase 控制台向单个设备、主题和用户群发送通知.

                  I am able to send the notification to single device, topics and user segment from Firebase Console.

                  我想向用户群发送推送通知.我进行了很多搜索,但我只得到了向单用户或主题发送通知的脚本,而不是向用户群发送通知.

                  I want to send the push notification to a user segment. I searched a lot but I'm only getting script to send notification to Single User or Topic not to user segments.

                  我试过下面的代码

                  var client = new RestClient("https://fcm.googleapis.com/fcm/send");
                  var request = new RestRequest(Method.POST);
                  request.AddHeader("content-type", "application/json");
                  request.AddHeader("authorization", "key=mykey");
                  request.AddParameter("application/json", "
                  
                  {"to" : "user-segment-name",
                  "notification" : {
                      "body" : "test message",
                      "title" : "Portugal vs. Denmark"
                      },
                      "priority":"high"
                  }", ParameterType.RequestBody);
                  IRestResponse response = client.Execute(request);
                  Response.Write(response.Content); 
                  

                  我得到下面的回复

                  {"multicast_id":5837227475989925972,"success":0,"failure":1,"canonical_ids":0,"results":[{"error":"InvalidRegistration"}]}
                  

                  推荐答案

                  不幸的是,似乎仍然无法以编程方式发送给用户段.参考这里:

                  Unfortunately, it seems that sending to user segments programatically still isn't possible. Reference here:

                  但你不会能够

                  1. 向 Firebase 用户标识符 (UID) 发送通知并

                  1. send notifications to a Firebase User Identifier (UID) and

                  向用户群发送通知(像在用户控制台上一样定位属性和事件).

                  只能通过 Firebase 控制台实现.

                  It's only possible via the Firebase Console.

                  这篇关于FCM - 以编程方式向用户细分发送推送通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:如何在应用程序未运行时堆叠 Firebase 云消息传递通知? 下一篇:FCM(firebase 云消息传递)令牌是用于一台设备还是一个帐户?

                  相关文章

                  <tfoot id='rbavZ'></tfoot>
                    <bdo id='rbavZ'></bdo><ul id='rbavZ'></ul>
                • <legend id='rbavZ'><style id='rbavZ'><dir id='rbavZ'><q id='rbavZ'></q></dir></style></legend>
                  1. <small id='rbavZ'></small><noframes id='rbavZ'>

                    <i id='rbavZ'><tr id='rbavZ'><dt id='rbavZ'><q id='rbavZ'><span id='rbavZ'><b id='rbavZ'><form id='rbavZ'><ins id='rbavZ'></ins><ul id='rbavZ'></ul><sub id='rbavZ'></sub></form><legend id='rbavZ'></legend><bdo id='rbavZ'><pre id='rbavZ'><center id='rbavZ'></center></pre></bdo></b><th id='rbavZ'></th></span></q></dt></tr></i><div id='rbavZ'><tfoot id='rbavZ'></tfoot><dl id='rbavZ'><fieldset id='rbavZ'></fieldset></dl></div>