MessagingPayload interface

Interface representing a Firebase Cloud Messaging message payload. One or both of thedata andnotification keys are required.

SeeBuild send requests for code samples and detailed documentation.

Signature:

exportinterfaceMessagingPayload

Properties

PropertyTypeDescription
dataDataMessagePayloadThe data message payload.
notificationNotificationMessagePayloadThe notification message payload.

MessagingPayload.data

The data message payload.

Signature:

data?:DataMessagePayload;

MessagingPayload.notification

The notification message payload.

Signature:

notification?:NotificationMessagePayload;

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2022-07-29 UTC.