nca*_*sas 2 android firebase firebase-cloud-messaging
在 Firebase 推送通知中,有效负载可以是“通知”或“有效负载”类型,但它们是否到达(或不到达)取决于应用程序是否处于后台以及其他详细信息。请澄清它们。
nca*_*sas 12
(本回答主要针对Android设备)
Firebase Cloud Messaging (FCM) push notifications can be of three types : notification, data and notification+data.
Notification messages are meant to be received by the Android operating system itself, with no intervention by the app. When received by Android, they will be shown as a notification in the tray. Some details:
click_action
Android-specific option (see this) or by specifying an URL in the link
property and having your app configure an intent filter associated with the URL you specified.Data messages are meant to be received by an Android service of your app. This service can, in principle (see below [*]), receive the messages when your app is in the foreground, in the background, or not running at all. Some details:
通知+数据消息包括两种类型的有效负载。它们的行为与仅通知有效负载的消息完全相同:
data
如果应用程序在用户单击(如上所述)时收到意图调用,则有效负载可供应用程序访问intent.extras
。 归档时间: |
|
查看次数: |
3769 次 |
最近记录: |