Hello everyone, I’m going to go ahead and keep this as short as possible.
I have an android application that I’ve been working on that uses the HTTP protocol for all networking. The amount of networking for this application is quite minuscule and PHP is more than capable at executing the required requests. We’ll be moving to our Java based server software later in the year.
Currently it’s not that I don’t know how to implement the messaging, but it’s more of a case of not knowing the best way. Currently this is the method that I have planned to use (Which has been tested and works).
1: Every X seconds (15) the client (Application) sends a request to the server to get new messages. If there are none, nothing is returned.
2: The client only sends requests while the application is opened (active, not in background).
3: Push notifications will alert the user of a new message when they are not inside of the application.
I’m just curious as to if anyone else has a better idea about this before I start adding it into our build version tomorrow.