grails C2DM - Android
looking for some Grails Plugin that implement the 开发者_开发技巧push notification for android.
I am already using apns for Iphone, but now I have to implement it for android! any suggestion?!
The server side of C2DM is simple and I guess that's the reason, why there is no plugin.
You just need to get an auth token and then do an http post request to the google C2DM server in oder to push your message
http://android-developers.blogspot.com/2010/05/android-cloud-to-device-messaging.html
but there seems also to be a java library which can be used in groovy/grails:
http://www.openintents.org/en/node/724
here you'll find some more details on how to push the messages:
http://code.google.com/intl/de-DE/android/c2dm/#server
Sample Java Code can be found here:
http://code.google.com/p/jumpnote/source/browse/#svn%2Ftrunk%2FJumpNoteWeb%2Fc2dm%2Fcom%2Fgoogle%2Fandroid%2Fc2dm%2Fserver
But I guess you'll be able to create your own groovy code with less lines... :-)
精彩评论