Send a Google Cloud Messaging (GCM) Message

The Google Cloud Messaging external action receives messages and delivers them to a Google Android device, such as a Samsung Galaxy S3. The external action pushes messages to an Android app installed on the target Android device by means of a cloud service—the Google Cloud Messaging (GCM) service.

Note: The Google Cloud Messaging external action is one of two external actions that can push messages to a mobile device. For messaging iOS devices, see Send an Apple Push Message.

Requirements

Configuration

Note: See also Working with Parameters in Automations Workflows.

  • API Key: The developer API key, used for authorizing the subscription to the Google Cloud Messaging service.
  • Registration IDs: The list of target Android devices to receive messages. Use a comma to separate multiple devices.
  • Note: This field is primarily for testing purposes. To override this field in a production system, see below.

  • Collapse Key: An arbitrary string that is used to collapse multiple, similar messages when a device is offline, so that only the last message is sent. For example, if 100 messages with the same Collapse Key are sent to a device with Registration ID "2" while it is turned off, the device will only receive the last message once it is turned on.
  • Notification Content Template: The notification content template.