Stay organized with collections
Save and categorize content based on your preferences.
Properties
Optional body
body: string
Optional image
image: string
Optional title
title: string
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-27 UTC.
[null,null,["Last updated 2022-07-27 UTC."],[],[],null,["# NotificationPayload | JavaScript SDK\n\n- [firebase](/docs/reference/js/v8/firebase).\n- [messaging](/docs/reference/js/v8/firebase.messaging).\n- NotificationPayload\n============================================================================================================================\n\nParameters that define how a push notification is displayed to users.\n\nIndex\n-----\n\n### Properties\n\n- [body](/docs/reference/js/v8/firebase.messaging.NotificationPayload#body)\n- [image](/docs/reference/js/v8/firebase.messaging.NotificationPayload#image)\n- [title](/docs/reference/js/v8/firebase.messaging.NotificationPayload#title)\n\nProperties\n----------\n\n### Optional body\n\nbody: string \nThe body of a notification.\n\n### Optional image\n\nimage: string \nThe URL of the image that is shown with the notification. See\n[`notification.image`](https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#notification) for supported image format.\n\n### Optional title\n\ntitle: string \nThe title of a notification."]]
Parameters that define how a push notification is displayed to users.