Set Up GCM

Magnet Message supports Google Cloud Messaging (GCM) as the transport method for Android push notifications. To enable your Android device to receive the GCM messaging service, you must register with GCM. If you have not done this skip down to the Set Up your Application with Google Developer section.

Integrate GCM into Magnet Message

  1. Open your app in Magnet Message.

  2. Go to the Settings screen.

  3. Enter the Google Project ID (Sender ID from Google) and Google API Key (Server API Key from Google).

The Google API key is validated when the app is created or updated. Invalid keys will return a bad request code.

sandbox_settings

Set Up your Application with Google Developer

  1. Log into your Google account.

  2. Open the Google Developer Implementing GCM Client on Android page.

  3. Scroll down to the Get a Configuration File section. Click the Get a Configuration File button to enable Google Services for your app.GCM-02

  4. Select or Enter your App Name and Package Name. Click Choose and configure services when ready.GCM-03

  5. Choose the desired Google services for your app. For messaging click the Cloud Messaging icon, and then click the Enable Google Cloud Messaging button to continue.GCM-04

  6. Record the following:

    • Server API Key: In the messaging web interface screen this is the Google API Key.
    • Sender ID: In the messaging web interface screen this is the Google Project ID.

    GCM-05

  7. Click the Generate configuration files button to download the google-services.json.GCM-06