I am working on a project like whatsApp. I am confused about the the protocol for chatting. can I use Http protocol for communication? your suggestion would be appreciated

有帮助吗?

解决方案

You need something more interactive, so that you don't need to poll for new messages. Try xmpp. WhatsApp uses the same protocol (well a little other encoded) and even Google Talk. Alternative you could try websockets.

其他提示

Yes. You can use http protocol for communication.
use JSON or xml or etc.
But, before set or make webserver.
otherwise you can use GCC(Google Cloud Message) for sending message between android device.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top