[英]Send message from Server to Android device and vice versa
I want to implement a chat application. 我想实现一个聊天应用程序。 But I have a few questions, which I could not solve by searching the internet.
但是我有几个问题,我无法通过搜索互联网解决。
My requests are: 我的要求是:
I wonder if GCM (Google Cloud Messaging) is the appropriate solution for me. 我想知道GCM(Google Cloud Messaging)是否适合我。 I have not yet worked with it, so I would like to have some help.
我尚未使用它,因此我希望获得一些帮助。 Will I run into troubles with this?
我会遇到麻烦吗? And most important: Is a registration required?
最重要的是:是否需要注册?
You will run into troubles surely, GCM is not for creating chat applications . 您肯定会遇到麻烦, GCM不是用于创建聊天应用程序的 。 You will need this XMPP .GCM is kind of thing used for broadcasting messages,which does not even guarantee the delivery of messages instantaneously ie real time which you will be requiring.
您将需要此XMPP .GCM是一种用于广播消息的东西,它甚至不能保证即时发送消息,即您需要的实时消息。
SEE THIS TOO: Android and XMPP: Currently available solutions 请参见: Android和XMPP:当前可用的解决方案
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.