FCM not received if App is killed? Even not showin

2019-09-06 09:10发布

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"
      }

}

1条回答
够拽才男人
2楼-- · 2019-09-06 09:48

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 ?

查看更多
登录 后发表回答