Java – how to send upstream GCM messages using Google cloud connection server

I'm trying to use the new cloud connection server feature of Google cloud messaging to send upstream messages from devices to the cloud. I'm using the sample code in the getting started guide http://developer.android.com/google/gcm/gs.html

I can set the client and get the registration ID. however, when I send a message to the server, there is no response. I'm not sure whether I need to make some settings on the server. My basic server requirement is to receive messages from the client and send back a response. I use a Java based back-end server. I can't find any specific content in the documentation on server settings

Can I help you?

resolvent:

Yes, it's absolutely possible http://developer.android.com/google/gcm/ccs.html

The GCM Cloud Connection Server (CCS) allows third party servers to communicate with 
Android devices by establishing a persistent TCP connection with Google servers using the 
XMPP protocol. This communication is asynchronous and bidirectional.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>