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

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

      <bdo id='nkbb6'></bdo><ul id='nkbb6'></ul>
  • <legend id='nkbb6'><style id='nkbb6'><dir id='nkbb6'><q id='nkbb6'></q></dir></style></legend>

        应用程序被杀死时未收到使用 FCM 的推送通知 android

        时间:2023-07-29
        • <tfoot id='N7fvA'></tfoot>
            <tbody id='N7fvA'></tbody>
          <i id='N7fvA'><tr id='N7fvA'><dt id='N7fvA'><q id='N7fvA'><span id='N7fvA'><b id='N7fvA'><form id='N7fvA'><ins id='N7fvA'></ins><ul id='N7fvA'></ul><sub id='N7fvA'></sub></form><legend id='N7fvA'></legend><bdo id='N7fvA'><pre id='N7fvA'><center id='N7fvA'></center></pre></bdo></b><th id='N7fvA'></th></span></q></dt></tr></i><div id='N7fvA'><tfoot id='N7fvA'></tfoot><dl id='N7fvA'><fieldset id='N7fvA'></fieldset></dl></div>

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

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

                  本文介绍了应用程序被杀死时未收到使用 FCM 的推送通知 android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                      public class Notification extends FirebaseMessagingService {
                  
                      private static final String TAG = "MyFirebaseNotification";
                  
                      @Override
                      public void onMessageReceived(final RemoteMessage remoteMessage) {
                          Map<String, String> data=null;
                  
                          Log.v(TAG,"notification Received");
                          Log.v(TAG,remoteMessage.getData().toString());
                      }
                      }
                  

                  应用程序被杀死时没有调用方法.即使应用程序被杀死,我如何接收通知,而不是在前台或后台.

                  Method is not being called when application got killed. How do i receive notifications even if the app is killed,not in foreground or background.

                  推荐答案

                  请在您的应用关闭时(重启或刷卡后)检查以下命令

                  Please check the following command while your app is closed (after a reboot or after swiping)

                  adb shell dumpsys package MY-PACKAGE | grep stopped
                  

                  如果您可以阅读 stopped=true,则表示您的设备制造商实施了一种非标准行为,包括在滑动时强制停止"应用程序.

                  if you can read stopped=true it means that the manufacturer of your device implemented a non standard behavior consisting in "force-stopping" applications when they are swiped.

                  force-stopping 非常类似于禁用应用程序,直到用户再次打开它.当应用程序处于该状态时,许多 android 行为将不起作用(广播、警报..)

                  force-stopping is very similar to disabling the app until the user opens it again. while the app is in that state many android behaviors will not work (broadcasts, alarms..)

                  如果这是您看到的行为的根本原因,您应该联系制造商并要求他们通过删除这种非标准行为来修复设备

                  If this is the root cause of behavior you are seeing you should contact the manufacturer and request that they fix the device by removing this non-standard behavior

                  这篇关于应用程序被杀死时未收到使用 FCM 的推送通知 android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:已在 FCM 中注册主题的客户列表 下一篇:Android 未收到 Firebase 推送通知 - MismatchSenderId

                  相关文章

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

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

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

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