How to send notification to Android app from Java server using GCM?

Bhushan picture Bhushan · Apr 2, 2013 · Viewed 62.8k times · Source

I have my simple Android application which uses REST web service. Now I want to sent notification from my REST web service to Android application using GCM.

How do this? Is there any simple tutorial for this requirement? I searched and found Google API, but I don't understand that.

Answer

Jarle Hansen picture Jarle Hansen · Apr 2, 2013

I have created a Java-based test server, implemented as a maven plugin, for the GCMUtils project: https://code.google.com/p/gcmutils/wiki/MavenPlugin#Test_server

Here is the source code: https://github.com/jarlehansen/gcmutils/tree/master/gcm-test-server

Source for the maven plugin: https://github.com/jarlehansen/gcmutils/tree/master/gcmutils-maven-plugin

Maybe this can help you get started?