Notification interface
Stay organized with collections
Save and categorize content based on your preferences.
A notification that can be included in Message.
Signature:
export interface Notification
Properties
Property |
Type |
Description |
body |
string |
The notification body |
imageUrl |
string |
URL of an image to be displayed in the notification. |
title |
string |
The title of the notification. |
Notification.body
The notification body
Signature:
body?: string;
Notification.imageUrl
URL of an image to be displayed in the notification.
Signature:
imageUrl?: string;
Notification.title
The title of the notification.
Signature:
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-29 UTC.
[null,null,["Last updated 2022-07-29 UTC."],[],[],null,["A notification that can be included in [Message](./firebase-admin.messaging.md#message).\n\n**Signature:** \n\n export interface Notification \n\nProperties\n\nNotification.body\n\nThe notification body\n\n**Signature:** \n\n body?: string;\n\nNotification.imageUrl\n\nURL of an image to be displayed in the notification.\n\n**Signature:** \n\n imageUrl?: string;\n\nNotification.title\n\nThe title of the notification.\n\n**Signature:** \n\n title?: string;"]]