Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to create API key for GCM?

I have problem in creating API Key because the options "create new server key" and "create new browser key " were not in the API access page. whether I should pay for using that.

like image 242
Saravanapandi_PSP Avatar asked Oct 31 '12 03:10

Saravanapandi_PSP


People also ask

What is GCM API?

"App Engine Backend with Google Cloud Messaging" Template. Google Cloud Messaging (GCM) is a service that allows you to send push notifications from your server to your users' Android devices, and also to receive messages from devices on the same connection.

What is a GCM key?

In cryptography, Galois/Counter Mode (GCM) is a mode of operation for symmetric-key cryptographic block ciphers which is widely adopted for its performance.


3 Answers

Normally after creating a project and saving a project # you click on Services on the left panel and turn on Google Cloud Messaging for Android. Then you should see this screen: enter image description here

Click on API Access and note down the API Key marked on the picture

enter image description here

EDIT: Here is the link to the full article that describes this process in details: http://www.androidhive.info/2012/10/android-push-notifications-using-google-cloud-messaging-gcm-php-and-mysql/

like image 161
Marcin S. Avatar answered Oct 23 '22 20:10

Marcin S.


The screenshots previously posts provide a great visual, but here are the steps I've taken when setting it up:

Go to http://developer.android.com/guide/google/gcm/gs.html

1 - Login with a google account

2 - Click 'Create project...' if you have not already done so.

3 - When you get to a page with a left side nav, make sure 'Services' is selected

4 - Turn 'Google Cloud Messaging for Android' ON

5 - Click on the 'Google Cloud Messaging for Android' link

6 - Click on the 'API Access' link in the left nav

7 - You should now be able to create a new server or browser key by clicking the corresponding button

like image 44
Shellum Avatar answered Oct 23 '22 20:10

Shellum


The easiest way is now login with your account on: https://developers.google.com/mobile/add and use wizard :)

like image 5
mtrakal Avatar answered Oct 23 '22 20:10

mtrakal