I have been searching for some days now how to implement Google Cloud Messaging for Android, but I'm with some serious doubts about it.
I mean, apparently Google put some good informations online, like here and here, but I'm confused about all the logic. One page talks about the client side, and another about the server side. Great, but how do I bind all of it together? How do I implement HTTP and/or XMPP protocol to communicate with the GCM connection server(s)?
I would like implement a basic HelloWorld for GCM, that would work with the following steps:
1. App send a message (say "HelloWorld") to GCM;
2. Receive that message from GCM and add it to a TextView.
What are the steps needed to achieve this basic app?
Thank you,
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…