Properties

android

(non-null admin.messaging.AndroidConfig or undefined)

Android-specific information to be included in the message.

apns

(non-null admin.messaging.ApnsConfig or undefined)

Information specific to the Apple Push Notification Service (APNS).

condition

(string or undefined)

The condition expression that determines the topics to which the message should be sent.

data

(non-null Object with string properties or undefined)

A collection of data fields to be included in the message. All values must be strings.

notification

(non-null admin.messaging.Notification or undefined)

A notification payload to be included in the message.

token

(string or undefined)

The registration token of the device to which the message should be sent.

topic

(string or undefined)

The FCM topic to which the message should be sent. This could be the bare topic name, or a topic name prefixed with /topics/.

webpush

(non-null admin.messaging.WebpushConfig or undefined)

WebPush-specific information to be included in the message.