Here’s what you have to do in order to enable the GCM service for your project:

The Project Number is automatically assigned by the Google Developers Console when you create a project. You can find the Project Number in the “Overview” tab of the Google API console.

Screen_Shot_2014-12-29_at_16_48_09

Here, 558498127919 is the Project Number you enter in the app. Don’t confuse it with Project ID, which is a completely different identifier & is used only within Developers Console!


Enable GCM and Get Credentials

1. In the main Google APIs Console page, select APIs & auth. Link

Screen_Shot_2014-03-06_at_15_09_32

2. Locate Google Cloud Messaging for Android, and turn the toggle ON. Link

Screen_Shot_2014-03-06_at_15_09_59

3. Accept the Terms of Service. Link

Screen_Shot_2014-03-06_at_15_10_12

Now you need to create the Server Key.

4. Go to the Credential section of the console. Link

Screen_Shot_2014-03-06_at_18_37_48

5. Press “Create new key“. Either a server key or a browser key should work. The advantage to using a server key is that it allows you to whitelist IP addresses. Link

Screen_Shot_2014-03-06_at_18_38_10 Screen_Shot_2014-03-06_at_18_38_16

6. Press “Create”. Link

Screen_Shot_2014-03-06_at_18_38_23

7. Here’s the API Key you will need to configure your application in Pushwoosh Control Panel. Link

Screen_Shot_2014-03-06_at_18_39_03

Go to the Pushwoosh Control Panel

8. In your application click on Android->Edit to change the configuration for Android application. Link

9. Copy your API Key to the field provided. Link

Screen Shot 2014-08-08 at 22.03.07

That’s it! Easy, isn’t it?

If you receive **“Sender Mismatch ID”** error when using **“Server Key”** please try using **“Browser Key”**[![Link](http://www.pushwoosh.com/wp-content/uploads/2014/07/link-icon.png)](http://www.pushwoosh.com/programming-push-notification/android/android-gcm-api-configuration/#sender-mismatch-id "Link to this paragraph")