Represents the WebPush protocol options that can be included in an .
Signature:
export interface WebpushConfig
Properties
Property | Type | Description |
---|---|---|
data | A collection of data fields. | |
fcmOptions | WebpushFcmOptions | Options for features provided by the FCM SDK for Web. |
headers | A collection of WebPush headers. Header values must be strings.See [WebPush specification](https://tools.ietf.org/html/rfc8030#section-5) 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](https://tools.ietf.org/html/rfc8030#section-5) for supported headers.
Signature:
headers?: {
[key: string]: string;
};
WebpushConfig.notification
A WebPush notification payload to be included in the message.
Signature:
notification?: WebpushNotification;