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?!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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… 🙂