GCMessage

Undocumented in source.

Members

Variables

collapse_key
string collapse_key;

This parameter identifies a group of messages that can be collapsed.

content_available
Nullable!bool content_available;

When a notification or message is sent and this is set to true, an inactive client app is awoken.

data
JSONValue data;

This parameter specifies the key-value pairs of the message's payload.

delay_while_idle
bool delay_while_idle;

When this parameter is set to true, it indicates that the message should not be sent until the device becomes active.

dry_run
bool dry_run;

This parameter, when set to true, allows developers to test a request without actually sending a message.

notification
Nullable!GCMNotification notification;

This parameter specifies the key-value pairs of the notification payload.

priority
GCMPriority priority;

Sets the priority of the message. Valid values are "normal" and "high".

restricted_package_name
string restricted_package_name;

This parameter specifies the package name of the application where the registration tokens must match in order to receive the message.

time_to_live
int time_to_live;

This parameter specifies how long (in seconds) the message should be kept in GCM storage if the device is offline.

Meta