Question

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

Was it helpful?

Solution

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.

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top