Google.Firebase.FCM.V1.Message (firebase_cloud_messaging_http_v1_api v0.2.0)

Message to send by Firebase Cloud Messaging Service.

https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages

Link to this section Summary

Functions

Send a message to specified target (a registration token, topic or condition).

Link to this section Types

@type t() :: %Google.Firebase.FCM.V1.Message{
  android: Google.Firebase.FCM.V1.AndroidConfig.t() | nil,
  apns: Google.Firebase.FCM.V1.ApnsConfig.t() | nil,
  condition: String.t() | nil,
  data: %{required(String.t()) => String.t()} | nil,
  name: String.t() | nil,
  notification: Google.Firebase.FCM.V1.Notification.t() | nil,
  options: Google.Firebase.FCM.V1.FcmOptions.t() | nil,
  token: String.t() | nil,
  topic: String.t() | nil,
  webpush: Google.Firebase.FCM.V1.WebpushConfig.t() | nil
}

Link to this section Functions

Link to this function

send(message, parent, access_token)

@spec send(t(), String.t(), String.t()) :: {:ok, any()} | {:error, String.t()}

Send a message to specified target (a registration token, topic or condition).