The Firebase JS SDK is now in BETA!
This EAP site is no longer maintained. See the official Firebase Documentation site for the latest documentation and information about the Firebase JS SDK.

Home > @firebase/messaging > NotificationPayload

NotificationPayload interface

Display notification details. They are sent through the Send API

Signature:

export interface NotificationPayload 

Properties

Property Type Description
body? string (Optional) The notification's body text.
image? string (Optional) The URL of an image that is downloaded on the device and displayed in the notification.
title? string (Optional) The notification's title.