GCM Configuration

GCM Configuration

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


Locate your Google Project Number


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

Here, 852741519435 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 API Manager.

2. Locate and click Google Cloud Messaging in Mobile APIs section.

3. Enable API.

Now you need to create the API key.

4. Go to the Credential section of the console, click "Create Credentials" and select API key

5. Select a server key or a browser key. The advantage to using a server key is that it allows you to whitelist IP addresses.

6. Press “Create”.

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

Go to the Pushwoosh Control Panel

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

9. Copy your API Key to the field provided.

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

MismatchSenderID error

If you receive “Sender Mismatch ID” error when using “Server Key” please try using “Browser Key”

你可能感兴趣的:(cocos2D-x,Android)