send method

JSPromise<JSString> send(
  1. Message message, [
  2. bool dryRun
])

Sends the given message via FCM.

@param message - The message payload. @param dryRun - Whether to send the message in the dry-run (validation only) mode. @returns A promise fulfilled with a unique message ID string after the message has been successfully handed off to the FCM service for delivery.

Implementation

external JSPromise<JSString> send(Message message, [bool dryRun]);