Notification interface

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.

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.