AWS IoT supports this via userPools, how this can be done via Google Cloud messaging? -Thanks
use a JavaScript MQTT client, for example Eclipse Paho; this just needs an external IP.
MQTT