Now I am trying to implement a GCM plugin to do the push notification for my Android client.
There is a GCM gem could probably be used for the API request.
The basic work flow I think is:
1.Client sends device GCM registration ID to Discourse while signing in from mobile device.
2.Discourse adds it to user’s custom field.
3.Discourse send notification to GCM as soon as it generated.
Maybe it could be done by adding a few lines in the function create_notification() in the PostAlerter class
I am not sure whether it is doable because I’m still learning Ruby and not quite familiar with Discourse plugin development.
Is there a better way to implement this?