【发布时间】:2018-02-14 00:44:16
【问题描述】:
根据this,当消息既是通知消息又是数据消息并且应用在后台时,消息接收如下:
Notification: system tray
Data: in extras of the intent.
它指的是哪个意图?
我从 Firebase 通知控制台发送了一条带有自定义数据的消息,即带有一些键/值。这是否被认为是组合的通知和数据消息?当应用程序在后台时,我的 onMessageReceived 事件不会触发。只有通知显示在顶部的通知栏中。
【问题讨论】:
标签: android firebase firebase-cloud-messaging android-notifications