Configuring Google Cloud Messaging Service

Google Cloud Messaging (GCM) is a service that allows you to send data from the server to Android devices, and also to receive messages from devices on the same connection.

For information about GCM, see http://developer.android.com/google/gcm/gs.html.

  1. Open the Google APIs Console page and select Services.
  2. Turn the Google Cloud Messaging toggle to ON.
  3. Accept the terms of the Google APIs Terms of Service.
  4. Create a new server key.
    1. Select API Access.
    2. Click Create new Server key.
      Either a server key or browser key work. If you use a server key, it allows you to whitelist IP addresses.
      Note: If you get a “Sender Mismatch ID” error when using a Server key, use the Browser key instead. You can find your ProjectID from the URL in your Google API console. Usually, it looks similar to this: https://code.google.com/apis/console/.........#project:348986612458, where 348986612458 is the ProjectID.
    3. Click Create.
      Take note of the API key value, as you need this to register.