Notification interface

A notification that can be included inMessage.

Signature:

exportinterfaceNotification

Properties

PropertyTypeDescription
bodystringThe notification body
imageUrlstringURL of an image to be displayed in the notification.
titlestringThe 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 theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2022-07-29 UTC.