Progress will discontinue Telerik Platform on May 10th, 2018. Learn more

Push Notifications to Android Stopped Working

Environment

Service Notifications (Backend Services)
Feature Push Notifications, Android

Description

Your Android app suddenly stopped receiving push notifications. The Telerik Platform portal shows the following error message in the details pane for the failed push notification: Error authenticating to Google Cloud Messaging server.

Error Message

Error authenticating to Google Cloud Messaging server.

Cause

The error signifies that Telerik Platform cannot authenticate to Google Cloud Messaging (GCM). Due to recent changes in the GCM infrastructure, the Google API key that you entered in Telerik Platform may no longer be accepted by Google for authentication to GCM.

Solution

Verify that the Google API key entered in Telerik Platform for your app is a Server API key.

Check the type of your Android API key:

  1. Open the Google Developers console.
  2. From the projects list select your project—look for the number used to subscribe the mobile app for push notifications (passed as senderId in the mobile app).
  3. On the left, click Credentials.
  4. In the API keys list, find the Google API key used in Telerik Platform.
  5. Verify that the key type is Server. Other key types such as Android, Browser, or iOS are not supported.
  6. If the key type is not Server, issue a Server API key and enter it in Telerik Platform. Take these steps:
    1. On the Credentials screen of your project in the Google Cloud Console, click Create credentials.
    2. From the list of available credentials types, choose API key.
    3. Select the Server key option (other key types are not supported).
    4. Name the key as you find appropriate.
    5. Leave the IP addresses field blank.
      The key will reside in Telerik Platform and will not be exposed to third parties. It is used only in the server-to-server communication between Telerik Platform and GCM.
    6. Click Create.
    7. Copy the generated key and paste it in your Telerik Platform app in Notifications > Push Notifications > Push Settings > Android.
    8. Save the Settings.
    9. Test your setting by sending a push notification.

See Also

Start a free trial Request a demo
Contact us: +1-888-365-2779
sales@telerik.com
Copyright © 2016-2017, Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.