method PushChannel.prototype.send
PushChannel.prototype.send(notification: NotificationMessage): Promise<void>

Extracts to.token and optionally subject as title, then sends via PushTransport.

Parameters

notification: NotificationMessage

The notification to send

Return Type

Promise<void>

Throws

Error

If to.token is absent or transport rejects

Usage

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