Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference {% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %} # NotificationPayload interface Display notification details. Details are sent through the [Send API](https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#notification). Signature: ```typescript export interface NotificationPayload ``` ## Properties | Property | Type | Description | | --- | --- | --- | | [body](./messaging_sw.notificationpayload.md#notificationpayloadbody) | string | The notification's body text. | | [icon](./messaging_sw.notificationpayload.md#notificationpayloadicon) | string | The URL to use for the notification's icon. If you don't send this key in the request, FCM displays the launcher icon specified in your app manifest. | | [image](./messaging_sw.notificationpayload.md#notificationpayloadimage) | string | The URL of an image that is downloaded on the device and displayed in the notification. | | [title](./messaging_sw.notificationpayload.md#notificationpayloadtitle) | string | The notification's title. | ## NotificationPayload.body The notification's body text. Signature: ```typescript body?: string; ``` ## NotificationPayload.icon The URL to use for the notification's icon. If you don't send this key in the request, FCM displays the launcher icon specified in your app manifest. Signature: ```typescript icon?: string; ``` ## NotificationPayload.image The URL of an image that is downloaded on the device and displayed in the notification. Signature: ```typescript image?: string; ``` ## NotificationPayload.title The notification's title. Signature: ```typescript title?: string; ```