Hi All
I have created a background service in which I am using the tcp socket connection. When the app is live either in background/foreground, the connection is working as expected. But when the clover device goes to sleep, the service is stopped terminating the socket. I have used the WakeLock with PowerManager.PARTIAL_WAKE_LOCK and WifiLock to keep the CPU alive, but this also does not keep the cpu alive. It kills my service again.
Then I used the PowerManager.SCREEN_DIM_WAKE_LOCK | PowerManager.ON_AFTER_RELEASE flags so that my clover device be in DIM state and it works. This is not a correct approach to fix this as this always keep the clover screen ON.
Please let us know the suggested solution for that.