method FcmProvider.prototype.send
Since 0.1.0
FcmProvider.prototype.send(message: PushMessage): Promise<void>

Sends a push notification via the FCM HTTP v1 endpoint.

Parameters

message: PushMessage

The push notification message

Return Type

Promise<void>

Throws

Error

If a token cannot be obtained, or the response is not OK

Usage

import { FcmProvider } from "notification-plugin/src/index.ts";