WebpushConfig interface

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

Signature:

export interface WebpushConfig 

Properties

Property Type Description
data { [key: string]: string; } A collection of data fields.
fcmOptions WebpushFcmOptions Options 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.
notification WebpushNotification A 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;