voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
23 lines (14 loc) • 964 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/messaging](./messaging.md) > [NotificationPayload](./messaging.notificationpayload.md)
## NotificationPayload interface
Display notification details. They are sent through the [Send API](https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#notification)
<b>Signature:</b>
```typescript
export interface NotificationPayload
```
## Properties
| Property | Type | Description |
| --- | --- | --- |
| [body?](./messaging.notificationpayload.body.md) | string | <i>(Optional)</i> The notification's body text. |
| [image?](./messaging.notificationpayload.image.md) | string | <i>(Optional)</i> The URL of an image that is downloaded on the device and displayed in the notification. |
| [title?](./messaging.notificationpayload.title.md) | string | <i>(Optional)</i> The notification's title. |