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.