问题
I'm a little bit confused about how to implement XMPP communication to GCM. Should I implement a XMPP server or a XMPP client on my server?
Thank you.
回答1:
You should implement a XMPP client on your server, which will establish a connection to the GCM CCS server.
As mentioned in a comment, you only need XMPP if you wish device to cloud messaging. For regular push notifications (cloud to device messaging), the GCM HTTP endpoint is sufficient.
来源:https://stackoverflow.com/questions/24863303/confused-about-google-gcm-xmpp