- Go To Google Developers Console
- Create a project and enter on its console
- Left panel go to
APIs & auth
->Credentials
- Click
Create New Key
->Server Key
-> Put the public IP or domain where the server remains (for testing a0.0.0.0/0.
can be used) - Left panel go to
APIs & auth
->APIs
-> Look for Google Cloud Messaging for Android and turn itON
- Copy the
API key
generated
Then go ot Google Developers Console at GooglePlay