I\'m building a command-line application in node.js and would like to receive GCM push notifications (the command-line app will be interacting with the same set of services
I don't think it possible (in a simple way)...
Android/iOS has an OS behind with a service that communicates with GCM...
If you are trying to run a CLI tool, you'll need to implement a service on top of the OS (Linux, Windows Mac) so it can receive notifications.