कंसोल पर जाएं

REST Resource: projects.messages

Resource: Message

Message to send by Firebase Cloud Messaging Service.

JSON representation
{
  "name": string,
  "data": {
    string: string,
    ...
  },
  "notification": {
    object (Notification)
  },
  "android": {
    object (AndroidConfig)
  },
  "webpush": {
    object (WebpushConfig)
  },
  "apns": {
    object (ApnsConfig)
  },
  "fcm_options": {
    object (FcmOptions)
  },

  // Union field target can be only one of the following:
  "token": string,
  "topic": string,
  "condition": string
  // End of list of possible types for union field target.
}
Fields
name

string

Output Only. The identifier of the message sent, in the format of projects/*/messages/{message_id}.

data

map (key: string, value: string)

Input only. Arbitrary key/value payload. The key should not be a reserved word ("from", "message_type", or any word starting with "google" or "gcm").

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

notification

object (Notification)

Input only. Basic notification template to use across all platforms.

android

object (AndroidConfig)

Input only. Android specific options for messages sent through FCM connection server.

webpush

object (WebpushConfig)

Input only. Webpush protocol options.

apns

object (ApnsConfig)

Input only. Apple Push Notification Service specific options.

fcm_options

object (FcmOptions)

Input only. Template for FCM SDK feature options to use across all platforms.

Union field target. Required. Input only. Target to send a message to. target can be only one of the following:
token

string

Registration token to send a message to.

topic

string

Topic name to send a message to, e.g. "weather". Note: "/topics/" prefix should not be provided.

condition

string

Condition to send a message to, e.g. "'foo' in topics && 'bar' in topics".