We are facing an issue regarding socket implementation. Socket is implemented on both server and client side. The problem is related to client side which is in this case is an android app. We are able to make it work for a successful connection and emit is also working fine every 10 seconds we update location using socket and it's working but only thing which is causing a problem is to maintain active listener. [login to view URL] is working but [login to view URL] is working for few minutes and when app is in background it stop working after few minutes and sometimes an hour or so. Which is why data isn't updating on client side that is notified by server to client due to this listener jam. So as we saving location every 10 seconds to the server through socket and i think doze mod isn't a problem here because socket is utilizing every 10 socket and it's active all the time. If you have experience with sockets and foreground service and understand my problem please contact us for further discussion.
You must be an experienced android developer.
Must have extensive experience in socket implementation on both server and client side.
Must have knowledge about BLE and Foreground services within android infrastructure.