WebpushConfig interface

Represents the WebPush protocol options that can be included in an Message.

Signature:

exportinterfaceWebpushConfig

Properties

PropertyTypeDescription
data{ [key: string]: string; }A collection of data fields.
fcmOptionsWebpushFcmOptionsOptions for features provided by the FCM SDK for Web.
headers{ [key: string]: string; }A collection of WebPush headers. Header values must be strings.See WebPush specification for supported headers.
notificationWebpushNotificationA WebPush notification payload to be included in the message.

WebpushConfig.data

A collection of data fields.

Signature:

data?:{[key:string]:string;};

WebpushConfig.fcmOptions

Options for features provided by the FCM SDK for Web.

Signature:

fcmOptions?:WebpushFcmOptions;

WebpushConfig.headers

A collection of WebPush headers. Header values must be strings.

See WebPush specification for supported headers.

Signature:

headers?:{[key:string]:string;};

WebpushConfig.notification

A WebPush notification payload to be included in the message.

Signature:

notification?:WebpushNotification;