Push Notification Setup - YerdySDK/yerdy-android GitHub Wiki

Push Notification Setup

Google

Go to Google API Projects and create an API project if you don't already have one. You don't need a new Sender ID (Google Project Number) and GCM API Key for each application you can use the same values across multiple applications.

Retrieve you Google Project Number

The Project Number visible on the Overview tab is your Sender ID this needs to be put into the manifest. <meta-data android:name="Yerdy_GCMSenderId" android:value="gcm:[SenderID]"/>

Enable GCM

Enable "Google Cloud Messaging for Android" under "APIs & auth" if it is not already enabled

Configure Project Credentials

  • "Crendentials" under "APIs & auth"
  • "Create New Key"
  • "Server Key"
  • Add the following IP value 78.47.162.198
  • The generated API key needs to be applied to our system
  • In the Yerdy Dashboard on the Account page you will find the entry for the API Key

Manifest Changes, Google Cloud Messaging Permissions and Services

Make the required GCM Manifest Changes

Amazon

Go to Obtaining Amazon Device Messaging Credentials and follow the directions on how to retrieve your ADM credentials.

Retrieve your Amazon API Keys

After following the steps above to generate your Amazon API keys they need to be copied into the configuration section of the dashboard for the application. The Android/Kindle Settings tab contains the API key that needs to be placed into the project explained in the Amazon Store Your API Key as an Asset page.

Manifest Changes, Amazon Device Messaging Permissions and Services

Make the required ADM Manifest Changes

Icon Customization

You can customize the look of the push message icons that display on the device. Placing the necessary variations of notification_icon.png in the res/drawable_____ folders will load the icons from your project instead of the SDK.