MessagingPayload interface
Stay organized with collections
Save and categorize content based on your preferences.
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:
export interface MessagingPayload
Properties
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 the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-07-29 UTC.
[null,null,["Last updated 2022-07-29 UTC."],[],[],null,["Interface representing a Firebase Cloud Messaging message payload. One or both of the `data` and `notification` keys are required.\n\nSee [Build send requests](https://firebase.google.com/docs/cloud-messaging/send-message) for code samples and detailed documentation.\n\n**Signature:** \n\n export interface MessagingPayload \n\nProperties\n\nMessagingPayload.data\n\nThe data message payload.\n\n**Signature:** \n\n data?: DataMessagePayload;\n\nMessagingPayload.notification\n\nThe notification message payload.\n\n**Signature:** \n\n notification?: NotificationMessagePayload;"]]