How To Use Generated Api Key In Gcm Code Android
I want to integrate GCM in android application for which I have registered my application and enabled GCM service on google developer console also created the API key. Where to put
Solution 1:
You don't have to use api key in android code.
You have to use this api key at server side to send notifications and use project number in android code to register device for GCM and obtain unique device id for receiving notifications.
STEPS TO USE GCM
- Register the Android app with GCM to receive Registration Id “RegId“
- Share “RegId” with the server
- Send a message from server to GCM using HTTP POST request
You can read step by step implementation of GCM here.
Post a Comment for "How To Use Generated Api Key In Gcm Code Android"