class Firebase::Admin::Messaging::MulticastMessage

A multicast message that can be sent via Firebase Cloud Messaging.

Contains payload information as well as recipient information. In particular, the message must contain exactly one of token, topic or condition fields.

Attributes

android[RW]

@return [AndroidConfig, nil]

An {AndroidConfig} (optional).
apns[RW]

@return [APNSConfig, nil]

An {APNSConfig} (optional).
data[RW]

@return [Hash<String, String>, nil]

A hash of data fields (optional). All keys and values must be strings.
fcm_options[RW]

@return [FCMOptions, nil]

An {FCMOptions} (optional).
notification[RW]

@return [Notification, nil]

A {Notification} (optional).
tokens[RW]

@return [Array<String>, nil]

Registration token of the device to which the message should be sent (optional).

Public Class Methods

new( data: nil, notification: nil, android: nil, apns: nil, fcm_options: nil, tokens: nil ) click to toggle source

Initializes a {Message}.

@param [Hash<String, String>, nil] data

A hash of data fields (optional). All keys and values must be strings.

@param [Notification, nil] notification

A {Notification} (optional).

@param [AndroidConfig, nil] android

An {AndroidConfig} (optional).

@param [APNSConfig, nil] apns

An {APNSConfig} (optional).

@param [FCMOptions, nil] fcm_options

An {FCMOptions} (optional).

@param [Array<String>, nil] tokens

A registration token of the device to send the message to (optional).
# File lib/firebase/admin/messaging/multicast_message.rb, line 47
def initialize(
  data: nil,
  notification: nil,
  android: nil,
  apns: nil,
  fcm_options: nil,
  tokens: nil
)
  self.data = data
  self.notification = notification
  self.android = android
  self.apns = apns
  self.fcm_options = fcm_options
  self.tokens = tokens
  self.topic = topic
  self.condition = condition
end