how to create node xmpp sever that communicate with android chat applicaion

419 Views Asked by At

i want to create android and iphone chat app, and i want to use XMPP using Nodejs. so i don't know about how node-xmpp-server will communicate with android app.

can node-xmpp-server can communicate with android app? if yes than, how can i create simple node-xmpp-server and simple android app that both can communicate.

i want use nodejs, xmpp and android if you have any other solution please let me know.

i have idea about socket.io but i dont want to use that.

please guide me, thank you in advance.

2

There are 2 best solutions below

5
On

If you are opting node.js at ur server then I would suggest you to use Socket.io which is a better fit for chat apps onnode.io. it provides client support libraries for android aswell. have a look at this and this.

0
On

i recomended you to using xmpp, why, xmpp is minim resource fro mobile apps, i have created some apps using socket.io lib, but it need more than xmpp resource, for example in socket.io my apps need 100mb of ram, using xmpp, my app need 50mb of ram