Properties

alert

(string, non-null admin.messaging.ApsAlert, or undefined)

Alert to be included in the message. This may be a string or an object of type admin.messaging.ApsAlert.

badge

(number or undefined)

Badge to be displayed with the message. Set to 0 to remove the badge. When not specified, the badge will remain unchanged.

category

(string or undefined)

Type of the notification.

contentAvailable

(boolean or undefined)

Specifies whether to configure a background update notification.

mutableContent

(boolean or undefined)

Specifies whether to set the mutable-content property on the message, so the clients can modify the notification via app extensions.

sound

(string or undefined)

Sound to be played with the message.

threadId

(string or undefined)

An app-specific identifier for grouping notifications.