4

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

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.

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

unor
  • 92,415
  • 26
  • 211
  • 360
Learner_Programmer
  • 1,259
  • 1
  • 13
  • 38

2 Answers2

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.

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.

VikasGoyal
  • 3,308
  • 1
  • 22
  • 42
1

If implementing XMPP, your users may use XMPP clients of their preference to chat on your server. This way you also reach users on platforms other than Android.

unor
  • 92,415
  • 26
  • 211
  • 360