2
Good evening guys, I’m planning to develop a Whatsapp style communication app, more in the intention to learn even, nothing more than that. Well, the app will have contact list | conversations | pending requests.
In this question I will only refer to the contacts, how is that and made this interaction with other users requesting a friend request.
I imagined as follows, I will have in my application a service that listens to a webservice (this webservice would return an object when it existed in the data set the request), ai when there was a response from the webservice it would write the pending contacts to an XML and delete them from the table, then run a broadcast with a notification on mobile with the data of the object that would be on Intent.
Well, I know it must be some libraries that do this exchange of information, but it seems that I’m always doing something very bad, because in webservice would be running a query to answer.
I wonder if anyone has any idea how it is done in these popular apps, or if it should use sockets instead of webservice. Thank you.
I know there are some that are Webapps that basically use ajax for everything, but for those that are not made of web, I think the best option are the sockets...
– Guilherme Chaguri