Go to console

Interface representing an FCM legacy API notification message payload. Notification messages let developers send up to 4KB of predefined key-value pairs. Accepted keys are outlined below.

See Build send requests for code samples and detailed documentation.

Indexable

[key: string]: string | undefined

Interface representing an FCM legacy API notification message payload. Notification messages let developers send up to 4KB of predefined key-value pairs. Accepted keys are outlined below.

See Build send requests for code samples and detailed documentation.

Index

Properties

Optional badge

badge: string

The value of the badge on the home screen app icon.

If not specified, the badge is not changed.

If set to 0, the badge is removed.

Platforms: iOS

Optional body

body: string

The notification's body text.

Platforms: iOS, Android, Web

Optional bodyLocArgs

bodyLocArgs: