Push Widget

GCM Configuration

Push Notification helps you in sending event or alert to your app users even when they are not logged into app. App42 uses GCM (Google Cloud Messaging) to send Push Notification on Android devices. You can send push notification from UI console as well as can use APIs to send and schedule Push notification to your app users. App42 also gives you interesting insight about analytics of push messages too. To know how to send push notification in your Android App, first we need to setup Google project to get the credentials. After regestering the project on Google, you need to setup the project credentials with App42. Here are the few easy steps to for the above process:

1. Prerequisite Setup

bullet Register with App42 platform

bullet Create an app once you are on Quick-start page after registration.

bullet If you are already registered, login to AppHQ console and create an app from App Manager -> App Create link.

bullet Create a project and get your Project Id from google developer console. It would be available in Overview section of your created project.

bullet Select your created project and click on APIs option in Google developer console and enable Google Cloud Messaging for Android service.

GoogleConsole1

bullet Click on Credentials from left menu -> Create New Key -> Server Key.

GoogleConsole2

bullet Keep Accept requests from these server IP addresses as blank and click on Create button

GoogleConsole3

bullet From AppHQ Management console click on Unified Notifications and click on Settings and view Android Setting as shown in below image:

App42AndroidSettingsSelect

bullet Select your app ,Click on Add Key if you have not added, Copy your server key under push key section which is generated in Google developer console in above step and submit it.

AppHQGCMKeysNew

bullet Go to Configure and Build Project