Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Message

import type { Message } from "https://googleapis.deno.dev/v1/fcm:v1.ts";

Message to send by Firebase Cloud Messaging Service.

interface Message {
android?: AndroidConfig;
apns?: ApnsConfig;
condition?: string;
data?: {
[key: string]: string;
}
;
fcmOptions?: FcmOptions;
name?: string;
notification?: Notification;
token?: string;
topic?: string;
webpush?: WebpushConfig;
}

§Properties

§

Input only. Android specific options for messages sent through FCM connection server.

§

Input only. Apple Push Notification Service specific options.

§
condition?: string
[src]

Condition to send a message to, e.g. "'foo' in topics && 'bar' in topics".

§
data?: {
[key: string]: string;
}
[src]

Input only. Arbitrary key/value payload, which must be UTF-8 encoded. The key should not be a reserved word ("from", "message_type", or any word starting with "google" or "gcm"). When sending payloads containing only data fields to iOS devices, only normal priority ("apns-priority": "5") is allowed in ApnsConfig.

§
fcmOptions?: FcmOptions
[src]

Input only. Template for FCM SDK feature options to use across all platforms.

§
name?: string
[src]

Output Only. The identifier of the message sent, in the format of projects/*\/messages/{message_id}.

§
notification?: Notification
[src]

Input only. Basic notification template to use across all platforms.

§
token?: string
[src]

Registration token to send a message to.

§
topic?: string
[src]

Topic name to send a message to, e.g. "weather". Note: "/topics/" prefix should not be provided.

§

Input only. Webpush protocol options.