Mirrorop Sender Registration Key For Android
I am trying to do push notification in android using GCM. I read the Google docs for GCM and their demo application. I created the client side program mentioned hereBut i am not getting registration ID. Also I am not getting some points like:.
do i need to server program too with this. on Google demo app they mention that i need to change api key at 'samples/gcm-demo-server/WebContent/WEB-INF/classes/api.key' is it necessary to do it every time as i am creating new projectCan any one provide me proper project other than google provided so that i clear my concepts.Any help will be appreciated.
It depends on how your thirds party server is going to work, but in general it works like this:. The app sends one or more sender Ids which are Google Project Numbers to the GCM servers.
Mirrorop Sender Registration Key For Android
GCM returns a registration Id, which the app uses to register with the server. The server uses the registration Id and the API key to send a message to the device via GCM. When sending the message GCM will ensure that the Google Project Number and API key match and match what was used to create the registration Id.
If they do it sends the message.Information on how the developers get this information can be found in the GCM documentation:Depending on your needs there are third party commercial sever solutions available.