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

后端 未结 4 553
傲寒
傲寒 2020-12-08 02:43

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 t

4条回答
  •  余生分开走
    2020-12-08 03:33

    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?

提交回复
热议问题