WebpushConfig interface Stay organized with collections Save and categorize content based on your preferences.
Represents the WebPush protocol options that can be included in anMessage.
Signature:
exportinterfaceWebpushConfigProperties
| 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.SeeWebPush 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.
SeeWebPush specification for supported headers.
Signature:
headers?:{[key:string]:string;};WebpushConfig.notification
A WebPush notification payload to be included in the message.
Signature:
notification?:WebpushNotification;Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-07-29 UTC.