• <small id='TCT48'></small><noframes id='TCT48'>

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

      1. <tfoot id='TCT48'></tfoot>
        <legend id='TCT48'><style id='TCT48'><dir id='TCT48'><q id='TCT48'></q></dir></style></legend>

        Firebase 云消息发送 click_action

        时间:2023-07-30
            <tbody id='Z4I5o'></tbody>
        • <small id='Z4I5o'></small><noframes id='Z4I5o'>

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

              1. <legend id='Z4I5o'><style id='Z4I5o'><dir id='Z4I5o'><q id='Z4I5o'></q></dir></style></legend>

                  <tfoot id='Z4I5o'></tfoot>
                  本文介绍了Firebase 云消息发送 click_action的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  有人知道从 Firebase 控制台发送 click_action 的一种方法吗?

                  我只想发送 click_action 按钮以使用通知,即使应用程序已关闭或在后台.

                  解决方案

                  目前无法在使用 Firebase Notifications 控制台发送消息时设置 click_action 参数.

                  您必须在自己的应用服务器上构建有效负载,或使用 Postman (instructions here) 或 cURL (instructions below).

                  <小时><小时>

                  通过 cURL 发送下游消息

                  您可以通过 cURL 发送请求来测试使用 FCM REST API 发送消息.

                  curl --header "授权:key="--header 内容类型:应用程序/json"https://fcm.googleapis.com/fcm/send -d "{"registration_ids":["ABC"]}"

                  从此处检索到的语法.

                  上面指出的 API_KEY 是指可以在您的 Firebase 控制台的云消息选项卡.

                  所在的部分:

                  "{"registration_ids":["ABC"]}"

                  是,可以替换为您自己的有效负载.有关详细信息,请参阅 FCM HTTP 协议文档.p>

                  Someone know one way to send the click_action from the firebase console ?

                  I just want to send the click_action button to use the notification even if the app is closed or in background.

                  解决方案

                  There is currently no way to set the click_action parameter when using the Firebase Notifications console to send the message.

                  You'll have to build the payload on your own App Server, or use Postman (instructions here) or cURL (instructions below) when testing.



                  Sending Downstream Messages via cURL

                  You can test sending messages using the FCM REST API by sending a request through cURL.

                  curl --header "Authorization: key=<API_KEY>" 
                         --header Content-Type:"application/json" 
                         https://fcm.googleapis.com/fcm/send 
                         -d "{"registration_ids":["ABC"]}"
                  

                  Syntax retrieved from here.

                  The API_KEY indicated above is referring to the Server Key that can be seen in your Firebase Console's Cloud Messaging Tab.

                  The part where:

                  "{"registration_ids":["ABC"]}"
                  

                  is, can be replaced with your own payload. See the FCM HTTP Protocol Documentation for more details.

                  这篇关于Firebase 云消息发送 click_action的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:Firebase onTokenRefresh() 未被调用 下一篇:当应用程序处于前台时如何处理 Firebase 通知

                  相关文章

                  • <bdo id='kWG0n'></bdo><ul id='kWG0n'></ul>
                1. <legend id='kWG0n'><style id='kWG0n'><dir id='kWG0n'><q id='kWG0n'></q></dir></style></legend>
                  <tfoot id='kWG0n'></tfoot>
                2. <i id='kWG0n'><tr id='kWG0n'><dt id='kWG0n'><q id='kWG0n'><span id='kWG0n'><b id='kWG0n'><form id='kWG0n'><ins id='kWG0n'></ins><ul id='kWG0n'></ul><sub id='kWG0n'></sub></form><legend id='kWG0n'></legend><bdo id='kWG0n'><pre id='kWG0n'><center id='kWG0n'></center></pre></bdo></b><th id='kWG0n'></th></span></q></dt></tr></i><div id='kWG0n'><tfoot id='kWG0n'></tfoot><dl id='kWG0n'><fieldset id='kWG0n'></fieldset></dl></div>

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