I am creating a simple Android chat app with groups, chat history etc., but "text only".

我正在创建一个简单的Android聊天应用程序,包括群组,聊天记录等,但“仅限文本”。

I have backend developer in Node.js. Googling we found out that XMPP (XML) is the protocol for large scale chats, but for small to medium chat apps (mobile), I believe we can go ahead with JSON and Node.js server.

我在Node.js中有后端开发人员。谷歌搜索我们发现XMPP(XML)是大规模聊天的协议,但对于中小型聊天应用程序(移动),我相信我们可以继续使用JSON和Node.js服务器。

Want to know if there is any significant advantage on using XMPP?

想知道使用XMPP是否有任何显着优势?

2 个解决方案

#1


2

It is not about simple text message. When you want to implement real time chat application you have to notify the all the user of chat window when their is a new message post in thread.

它不是简单的短信。当您想要实现实时聊天应用程序时,您必须在线程中的新消息发布时通知聊天窗口的所有用户。

The one way to notify other user is through push notification which is generally not that much reliable. So we use XMPP protocol for that. Find more details about XMPP here.

通知其他用户的一种方式是通过推送通知,这通常不太可靠。所以我们使用XMPP协议。在此处查找有关XMPP的更多详细信息。

If you don't want to use XMPP protocol then you can achieve the same using socket. And in android their is socket.io is available which is also a good library for real-time chat.

如果您不想使用XMPP协议,那么您可以使用套接字实现相同的功能。在android中他们的socket.io是可用的,这也是一个很好的实时聊天库。

更多相关文章

  1. Android - 在一个应用程序中启动另外一个已经安装的应用程序或系
  2. Android混合应用程序:JQueryMobile ajax不支持https,但可以使用htt
  3. 第三部分:Android 应用程序接口指南---第二节:UI---第六章 对话框
  4. 如何将本机应用程序(android)与phonegap应用程序集成
  5. 为什么我的Android应用程序偶尔可以非常快地耗尽电池?
  6. 如何在android 5.0(L)中运行应用程序活动名称?
  7. Android应用程序启动过程上
  8. Java Android套接字连接。错误的IP地址导致应用程序停止响应
  9. Android 为你的应用程序添加快捷方式【优先级高的快捷方式】

随机推荐

  1. Android:UI设置-横竖屏转换、输入法键盘相
  2. android-listview控件
  3. Android(安卓)蓝牙 UUID分类汇总
  4. 关于使用Android(安卓)Application的注意
  5. ListView滚动条问题
  6. android 笔记 --- Android Shadow 阴影制
  7. Android零碎知识点
  8. android wifi开发
  9. android中的数据存取SQLite----对各个方
  10. Android AIDL demo