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

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

        <legend id='iIRAY'><style id='iIRAY'><dir id='iIRAY'><q id='iIRAY'></q></dir></style></legend>
        <tfoot id='iIRAY'></tfoot>

        从 Firebase 控制台发送静默推送通知

        Send silent push notification from Firebase console(从 Firebase 控制台发送静默推送通知)

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

          1. <legend id='ni5fB'><style id='ni5fB'><dir id='ni5fB'><q id='ni5fB'></q></dir></style></legend>
              <tbody id='ni5fB'></tbody>
          2. <small id='ni5fB'></small><noframes id='ni5fB'>

              • <tfoot id='ni5fB'></tfoot>
                  <bdo id='ni5fB'></bdo><ul id='ni5fB'></ul>
                  本文介绍了从 Firebase 控制台发送静默推送通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  试图证明我已经研究了一段时间的概念,其中涉及我的应用接收静默通知.我正在使用 Firebase 云消息传递,因为它比开发人员的原生 APN 开销更少.

                  Trying to prove a concept I've been working on for a while, which involves my app recieving a silent notification. I am using Firebase Cloud Messaging as it has less overhead than native APNs for the developer.

                  我知道当您在自己的后端自己构建有效负载时,FCM 支持静默通知,这当然是我的意图.但是,我想确保我可以用这个通知做我想做的事情,因此想在我花时间编写后端之前使用 FCM 控制台来证明它.

                  I know FCM supports silent notifications when you build the payload yourself on your own backend, which is of course my intention. However, I want to make sure I can do what I want to do with this notification, and therefore want to prove it using the FCM console before I spend time writing my backend.

                  我已经设法从这里发送标准通知,但不是静默通知.即使我包含 content-available 标志,我仍然会收到警报.我认为这是由于 FCM 总是在 JSON 中包含 alert 参数.有没有办法在测试控制台中禁用它?

                  I have managed to send standard notifications from here, but not silent ones. Even when I include the content-available flag I'm still alerted. I think this is due to FCM always including the alert parameter in the JSON. Is there a way to disable this in the test console?

                  非常感谢,

                  推荐答案

                  无法从 Firebase 控制台发送不同于标准类型的通知.

                  There is no way to send notifications different from the standard kind from the Firebase Console.

                  一个相当方便的方法是使用 Postman 或 curl 设置授权标题.

                  A quite convenient way is to use Postman or curl with a set Authorization Header.

                  curl -H "Content-type: application/json" -H "Authorization:key=<YOUR-API-KEY>"  -X POST -d '{ "data": { "foo": "1","bar": "2"},"to" : "<YOUR-DEVICE-TOKEN>"}' https://fcm.googleapis.com/fcm/send
                  

                  这篇关于从 Firebase 控制台发送静默推送通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  When does a FCM token expire?(FCM 令牌何时到期?)
                  Firebase Cloud Messaging (FCM) - Launch Activity when user clicks the notification with extras(Firebase Cloud Messaging (FCM) - 当用户点击带有附加功能的通知时启动活动)
                  Implement Firebase inside of a Library(在库中实现 Firebase)
                  Firebase Backward compatibility with GCM(Firebase 与 GCM 的向后兼容性)
                  Receiving the FCM notifications multiple times on Nougat(在 Nougat 上多次接收 FCM 通知)
                  Push Notifications are delivered but didReceiveRemoteNotification is never called Swift(推送通知已交付,但 didReceiveRemoteNotification 从未被称为 Swift)
                      <tbody id='3qhY5'></tbody>
                    • <tfoot id='3qhY5'></tfoot>

                        <small id='3qhY5'></small><noframes id='3qhY5'>

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