-
Notifications
You must be signed in to change notification settings - Fork 16
Description
Hi,
While I was testing on Android 5.1.1 (Lollipop), if the mobile remains Idle for around 15 minutes, the Connection of the Client with the Server Drops and never Re-Connects. Even if the Server is Restarted, it does not connect. The Client is still running in the background. Even if I re-open the client, there is still no connection. The Only way to re-establish the connection is to End Task the client from background and then re-open the app, then the connection is established but again for no more than 15 mins of Idle time.
I have checked the code, it should be running as a "service" and "start_sticky" should make the 'NetworkHandler.class' to restart once it is destroyed or loses connection. May be it needs a "Keep-Alive" kind of a function to keep the connection active with the server for as long as possible and once the connection is dropped, start the process again.