表示可以包含在訊息中的 WebPush 協定選項。
簽名:
export interface WebpushConfig
特性
財產 | 類型 | 描述 |
---|---|---|
數據 | { [鍵:字串]:字串; } | 資料欄位的集合。 |
fcm選項 | WebpushFcm選項 | FCM SDK for Web 提供的功能選項。 |
標頭 | { [鍵:字串]:字串; } | WebPush 標頭的集合。標頭值必須是字串。有關支援的標頭,請參閱WebPush 規範。 |
通知 | 網頁推播通知 | 若要包含在訊息中的 WebPush 通知負載。 |
WebpushConfig.data
資料欄位的集合。
簽名:
data?: {
[key: string]: string;
};
WebpushConfig.fcmOptions
FCM SDK for Web 提供的功能選項。
簽名:
fcmOptions?: WebpushFcmOptions;
WebpushConfig.headers
WebPush 標頭的集合。標頭值必須是字串。
有關支援的標頭,請參閱WebPush 規範。
簽名:
headers?: {
[key: string]: string;
};
WebpushConfig.notification
若要包含在訊息中的 WebPush 通知負載。
簽名:
notification?: WebpushNotification;