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

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

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

      1. <tfoot id='BQz2p'></tfoot>
      2. 离子 2 在后台的 FCM 无法正常工作

        FCM with ionic 2 in background not working(离子 2 在后台的 FCM 无法正常工作)
        1. <legend id='MDWDf'><style id='MDWDf'><dir id='MDWDf'><q id='MDWDf'></q></dir></style></legend>

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

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

                  <tfoot id='MDWDf'></tfoot>
                • 本文介绍了离子 2 在后台的 FCM 无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  如果我的应用程序关闭,点击通知栏后,回调不起作用.

                  If my application is closed, after click to notification bar, the callback not working.

                  前台不错,后台不行.

                  我使用这个例子:https://ionicframework.com/docs/native/fcm/

                  我在 Andoird 上测试

                  I test on Andoird

                  谢谢

                  推荐答案

                  当应用程序处于后台以获取点击回调时,您可能需要更改发送到 FCM api 的通知和数据负载,如下所示.此处 click_action 应为 FCM_PLUGIN_ACTIVITY 以使点击正常工作.请参阅 fcm 插件文档中的发送通知.有效负载示例(REST API)"部分

                  When app is in background in order to get the click call back you might need to change the notification and data payload sending to the FCM api as below. Here the click_action should be FCM_PLUGIN_ACTIVITY in order to get the click to work properly. Refer the "Send notification. Payload example (REST API)" part in the fcm plugin documentation

                  {
                    "notification":{
                      "title":"title",
                      "body":"message",
                      "sound":"default",
                      "click_action":"FCM_PLUGIN_ACTIVITY"
                    },
                    "data":{
                     "title":"title",
                      "body":"message",
                      "param1":"value1",
                      "param2":"value2"
                    },
                      "to":"token..."
                  }
                  

                  这篇关于离子 2 在后台的 FCM 无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  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)
                • <i id='pddSP'><tr id='pddSP'><dt id='pddSP'><q id='pddSP'><span id='pddSP'><b id='pddSP'><form id='pddSP'><ins id='pddSP'></ins><ul id='pddSP'></ul><sub id='pddSP'></sub></form><legend id='pddSP'></legend><bdo id='pddSP'><pre id='pddSP'><center id='pddSP'></center></pre></bdo></b><th id='pddSP'></th></span></q></dt></tr></i><div id='pddSP'><tfoot id='pddSP'></tfoot><dl id='pddSP'><fieldset id='pddSP'></fieldset></dl></div>

                        <legend id='pddSP'><style id='pddSP'><dir id='pddSP'><q id='pddSP'></q></dir></style></legend>
                          <tbody id='pddSP'></tbody>
                          <bdo id='pddSP'></bdo><ul id='pddSP'></ul>

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

                            <tfoot id='pddSP'></tfoot>