In this manual we will describe how to integrate Google Cloud Messaging (GCM) within your app and later how to integrate with This document explains how to setup an application that enables sending and receiving Android Push Notifications, and then adding this application to the Appoxee messaging service in your app. http://developer.android.com/guide/google/gcm/index.html
It is recomended to have two Appoxee Applications for each one of your apps. One for development and one for Production. This way you will always be able to send test messages and to test all the functionalities without affecting the Production app.
Below are the steps for enabling Android push notifications:
...
Step A: Creating a Google API project
- Open the Google APIs Console page.
- If you haven't created an API project yet, this page will prompt you to do so
Note:
- If you already have existing projects, the first page you see will be the Dashboard
- page. From there you can create a new project by opening the project drop-down menu (upper left corner) and choosing Other projects > Create.
- Click create project
- Open the Google APIs Console page, make sure your project is selected and take a note of the project id. This is your project number, and it will be used later on within the Application Settings in the Appoxee dashboard.
...
Step B: Enabling the GCM Service
- In the main Google APIs Console page, select "Services".
- Turn the Google Cloud Messaging toggle to ON.
- On the "Terms of Service" page, accept the terms
Step C: Obtaining an API Key
- On the main Google APIs Console page, select "API Access".
- Click "Create new browser key".
- Take a note of the API key value as it will be used later on.
...
Step D: Creating an Android App in Appoxee
...
- Allow feedback - improves your application's rating in Google Play.
- Allow more apps - shows the user additional applications you released, allowing the user to easily install them.
...
The application setup process consists of the following steps:
- Step A: Google Setup for Appoxee Standalone – allow your app to send and receive Push Notifications.
This is done by creating an Android app, get a Google Project ID and an API key, and then enable the Google Cloud Messaging (GCM) service.
- Step B: Appoxee Setup for Appoxee Standalone -allow Appoxee to send notifications from your application. This is done by adding the Android app to your Appoxee account.
Note |
---|
An application has two environments: Development and Production. |
Once you complete the Android Application Setup process, your next task is to add Push notifications to your code (see Appoxee Android SDK Integration).