GCMRequest

Members

Functions

toJson
Json toJson()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

collapse_key
string collapse_key;

An arbitrary string (such as "Updates Available") that is used to collapse a group of like messages when the device is offline, so that only the last message gets sent to the client

data
Json data;

A JSON object whose fields represents the key-value pairs of the message's payload data

delay_while_idle
bool delay_while_idle;

If included, indicates that the message should not be sent immediately if the device is idle

dry_run
bool dry_run;

If included, allows developers to test their request without actually sending a message

notification_key
string notification_key;

A string that maps a single user to multiple registration IDs associated with that user.

registration_ids
string[] registration_ids;

A string array with the list of devices (registration IDs) receiving the message

restricted_package_name
string restricted_package_name;

A string containing the package name of your application

time_to_live
int time_to_live;

How long (in seconds) the message should be kept on GCM storage if the device is offline

Meta