如果应用程序被杀害,FCM没有收到?甚至没有显示在系统托盘中 [英] FCM not received if App is killed? Even not showing in system tray

查看:129
本文介绍了如果应用程序被杀害,FCM没有收到?甚至没有显示在系统托盘中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果应用程序被杀死,FCM没有收到?甚至没有显示在系统托盘中。在前景/背景状态下工作正常。

  {
to:dV_9vNhqkXE:....,
通知:{
title:1,
body:11,
icon:ic_about
},
data:{
type:11,
month:3333,
title:2222
}



解决方案

这个链接将帮助你更好地理解前台和后台的活动状态。它基本上说,如果你有强制关闭你的应用程序,你将不会收到任何通知,因为当用户强制关闭应用程序:通知未到达。那么,你是否强迫关闭应用程序?

FCM not received if App is killed? Even not showing in system tray. Working fine in foreground/background state. I have used the below payload.

    {
  "to":"dV_9vNhqkXE:....",
  "notification": {
          "title":"1",
          "body"  : "11",
           "icon"  : "ic_about"
      },
    "data": {
          "type":"11",
          "month":"3333",
          "title":"2222"
      }

}

解决方案

This link will help you understand more about the state of activities in their foreground and background. It basically says that you wont receive any notification if you have force closed your app, because "When the app is closed forcelly by the user : notifications don't arrive". So, did you force close the app ?

这篇关于如果应用程序被杀害,FCM没有收到?甚至没有显示在系统托盘中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆