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

    1. <tfoot id='GJde3'></tfoot>

      1. <small id='GJde3'></small><noframes id='GJde3'>

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

        奥利奥没有在后台调用 FCM 通知

        FCM Notifications not getting called in background for Oreo(奥利奥没有在后台调用 FCM 通知)

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

        <tfoot id='j6AkL'></tfoot>
            <tbody id='j6AkL'></tbody>

              <bdo id='j6AkL'></bdo><ul id='j6AkL'></ul>
                • <small id='j6AkL'></small><noframes id='j6AkL'>

                  <i id='j6AkL'><tr id='j6AkL'><dt id='j6AkL'><q id='j6AkL'><span id='j6AkL'><b id='j6AkL'><form id='j6AkL'><ins id='j6AkL'></ins><ul id='j6AkL'></ul><sub id='j6AkL'></sub></form><legend id='j6AkL'></legend><bdo id='j6AkL'><pre id='j6AkL'><center id='j6AkL'></center></pre></bdo></b><th id='j6AkL'></th></span></q></dt></tr></i><div id='j6AkL'><tfoot id='j6AkL'></tfoot><dl id='j6AkL'><fieldset id='j6AkL'></fieldset></dl></div>
                • 本文介绍了奥利奥没有在后台调用 FCM 通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  当用户未连接到 xmpp 时,我正在使用 FCM 通知进行聊天.

                  I am using FCM notifications for chat when user is not connected to xmpp.

                  FCM 中有两种通知模式1.通知消息2. 数据消息

                  There are 2 modes of Notifications in FCM 1. Notifications Message 2. Data Messages

                  如果我的应用从最近删除中清除,我将使用数据消息作为通知消息不会出现

                  I an using Data messages as Notification messages won't come if my app is cleared from recents

                  这种方法适用于除奥利奥以外的所有版本.

                  This approach is working fine for all the version except Oreo.

                  对于 Oreo,我仅在应用未连接到 xmpp 且未连接到前台时才会收到通知.我的 onMessageReceived 方法被调用了.

                  For Oreo, I only get notifications if the app is not connected to xmpp and in foreground. My onMessageReceived method is getting called.

                  但是当应用被杀死或从最近的应用中删除时,同样的情况不会发生.

                  But the same is not happening when the app is killed or removed from recents ONLY for Oreo.

                  我在一加 3 设备上试过.

                  I tried on One Plus 3 device.

                  感谢任何帮助.

                  推荐答案

                  这可能为时已晚,但 One Plus 手机有一项称为电池优化的功能.关闭应用的电池优化后,您将开始接收后台通知.我的一加 5T 也有同样的问题.

                  This might be too late for an answer but One Plus phones have a feature called battery optimisation. You will start receiving the background notifications as soon as you turn the battery optimisation off for your app. I had the same problem with my One Plus 5T.

                  这篇关于奥利奥没有在后台调用 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)
                    <tbody id='QKSy9'></tbody>
                • <tfoot id='QKSy9'></tfoot>
                    • <bdo id='QKSy9'></bdo><ul id='QKSy9'></ul>

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

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

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