Android M - Socket behavior when device enters Doze mode

We are developing a VOIP based application where we need to maintain a TCP connection to the server. To achieve this, we periodically send all live packets to the server. We wanted to know the behavior of the socket when the device goes into Doze mode. Whether the socket connection keeps intact or is closed when the device goes into dosage mode.

+3


source to share


2 answers


From experience (with an application using socket.io), I can tell that doze mode stops all network activity except when in the maintenance window. This means that you will lose the socket connection.



0


source


Yes, all network activity including tcp socket when the device goes into dose mode. You can ask the user to ignore battery optimization to get around this limitation.



0


source







All Articles