Creating a communication app

2

Good evening guys, I'm planning to develop a whatsapp style communication app, more in the intention of learning anyway, nothing more. Good, the app will have contact list | conversations | pending requests.

In this question I will only refer to the contacts, how will this interaction with other users ask you for a friend request.

I thought of the following, I will have in my application a service that is listening to a webservice (this webservice would return an object when the request database existed), then when there was a response from the webservice it would write to an XML the pending contacts and would exclude from the table, then run a broadcast with a mobile notification with the data of the object that would be in intent .

Well, I know there must be some libraries that do this information exchange, but it seems like I'm always doing something very bad, because in webservice I would be executing a query to give an answer. p>

I'd like to know if anyone has any idea how and what's done in these popular app, or should use sockets instead of webservice. Thank you.

    
asked by anonymous 12.07.2014 / 06:57

1 answer

1

In this case, I particularly recommend using a NoSQL database on the Server side to perform with a minimally acceptable performance (MongoDB).

On your question, WhatsApp for example uses a concept called SSL Socket ( ), it's not such a trivial topic, so you'll have to patiently study how it works if you want to implement it.

in this link:

link

remembering that the server side of whatsapp is done in earlang, but for a start you can study this PHP project available in GitHub:

link

At least to start is good, to capture the concepts ..

    
13.07.2014 / 01:42