Step 1- Move to the web browser and type the following address, then click on select a project dropdown button,
Step 2- Click on
Create a project button and at this time suppose we have no project, so just one.
Step 3- A window appears, give the project a name and apply the term and conditions. Note that it is not mandatory that your app name and project name is similar.
Step 4- After creating a project a dashboard appears and in the front box, you see the project Id and project number. Copy these two things since we have to use it later. Click on the left sidebar top box which I have highlighted.
Step 5- Now click on
API Manager,
Step 6- Now click on
Google Cloud Messaging and after that you can see the enable button. Press it!
Step 7- After enabling you can see the Alert message. Now click on
Go to Credential.
Step 8- Now click on
Browser key because we receive the data from the browser. So, I will press the browser key and if you send data from the server select
Server key.
Step 9- Give the name and the second field can’t give anything. Click on
Create button,
Step 10- Now copy this API key since we have to use this later. Now our GCM work is complete and now we move to the Android Studio for further configuration.