WebpushConfig
import type { WebpushConfig } from "https://googleapis.deno.dev/v1/fcm:v1.ts";
Webpush protocol options.
interface WebpushConfig {
data?: {};
[key: string]: string;
fcmOptions?: WebpushFcmOptions;
headers?: {};
[key: string]: string;
notification?: {};
}[key: string]: any;
§Properties
§
data?: {}
[src][key: string]: string;
Arbitrary key/value payload. If present, it will override google.firebase.fcm.v1.Message.data.
§
fcmOptions?: WebpushFcmOptions
[src]Options for features provided by the FCM SDK for Web.
§
headers?: {}
[src][key: string]: string;
HTTP headers defined in webpush protocol. Refer to Webpush protocol for supported headers, e.g. "TTL": "15".
§
notification?: {}
[src][key: string]: any;
Web Notification options as a JSON object. Supports Notification instance properties as defined in Web Notification API. If present, "title" and "body" fields override [google.firebase.fcm.v1.Notification.title] and [google.firebase.fcm.v1.Notification.body].