Friday 18 October 2013

Android Google Cloud Messaging: Register Android Project



Creating Android Key (API Key)


Before to start developing android push notification app, you need access to Google APIs and register your android project. Here is detailed procedure to register android project and creating android key, please follow as described below:

Step#1

Ente the URL: https://code.google.com/apis/console/‎, it asks for sign-in. Enter gmail account credentials and sign-in. As you sign-in, following screen will appear:
  








Step#2 

Click on API Project from left pane and then select ‘Create’, as: Enter the project name and click Create Project. 


Step#3

After creating project, Dashboard appeared as: Note the project Number; it will be used on GCM Client side (Android Side) as SENDER_ID.

 


Step#4

Click on Services tab from left pane, a list of services will be displayed. Most of services are Off by default. You can choose a number of service(s) according to your requirement and then switch ON. For push notification you need to ON Google Cloud Messaging Service as under:

 

Step#5

After activating GCM service,  click on API Access from left pane and click on Create new Android Key as under:
 




Step#6
 
A pop-up window will appear as under: enter the required parameters and then click on Create button.

 

Step#7


Finally, API key has been successfully generated as under: This API Key will be used on GCM Server Side code as APIKey.

 


This is all, what you need to do for API Key.



2 comments:

  1. hi syed, when register using above steps server created automatically?
    i want some detail how server created for response android app
    help us

    ReplyDelete
  2. hi danial,
    Really sorry for late reply.
    Well, this code is for how to register your android project for push notifications. For Server code, see my post with title "Android Google Cloud Messaging Server Side Code".

    ReplyDelete