I had to add the @ApiMethod (name = "sendMessage") sendMessage method in the MessagingEndpoint class created using the Studio template. After that, I was able to use sendMessage api to send a message back to the application engine server, which is connected to GCM, and this message was again returned on my device.
user531069
source share