MessagingPayload interface

Interface representing a Firebase Cloud Messaging message payload. One or both of the data and notification keys are required.

See Build 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;