<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 通知

        时间:2023-07-30

        <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 通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:Android - 如何从多个设备检测同一用户? 下一篇:UIButton 标签文本被剪裁

                  相关文章

                • <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>