3
I would like to know the best way, in terms of security/performance, to make my mobile/android application communicate with a web server (apache/php, for example) to receive/send data.
The idea is to make, from time to time, my mobile application consult the web server to get data, I thought at first to do via Http Request (GET) getting the result in JSON format, but my question is whether this is the best way to do. I know it could be via Web Service too.
There are only these two "chat" options (http / webservice)?
Or is there some other model, such as via sockets in a particular port to be faster?
I await your advice.