Google Cloud Messaging

To receive push notifications on an Android device, an app must have the correct Google Cloud Messaging (GCM) credentials.  Essentially, you need to take some data from the MobileSmith platform and put it into the GCM platform, as well as take some data from the GCM platform and put it into the MobileSmith platform.

You will need to have a Google account.

In the MobileSmith platform, login and look at your list of projects.  Find the desired project and copy the Package ID.

 

 

Login with your Google account (if not already logged in).

 

Click "Pick a platform".

 

 

 

Click "Android App"

 

 

For "App name", you can enter whatever name you want, although it usually makes sense to name it the same or similar to your MobileSmith Project Name, especially if you have created or plan to create multiple projects in the MobileSmith platform.

 

 

For "Android package name", paste in the Package ID you copied from the MobileSmith platform.

 

 

 

Click "Choose and configure services"

 

Click "Cloud Messaging".

 

 

Click "ENABLE GOOGLE CLOUD MESSAGING".

 

You should see a success message informing you that Cloud Messaging has been enabled for your app.  Scroll down and find the "Server API Key" and the "Sender ID" - these are two of the three parts you will need to put into the MobileSmith platform.

Copy the "Server API Key" (red box)

Copy the "Sender ID" (green box)

 

 

 

 

Click "Generate configuration files".

 

 

Click "Download google-services.json" and save the file.

**NOTE** Do not change the filename - it must be "google-services.json"

 

Now you have all three parts!  Go back to the MobileSmith platform and edit your project.

Go to App Stores > Push Credentials.

For "Configuration file", click the "Add" button and select the file you just downloaded from Google. (the filename should be "google-services.json")

For "Server API Key" and "Sender ID", paste in the values you copied earlier from Google.

 

Click the green "Add" button to save your changes.

Your app is now ready to receive push notifications on Android devices!