I am using a couple of Samsung tablets for my home automation, and I am using AutoRemote for additional control, sending commands through local Wifi. When the tablet has sat quiet for some time, sometimes AutoRemote will fail to receive the command, with the sender reporting the error "Connection refused". I know that the AutoRemote checkbox allowing WiFi reception needs to be set after a reboot. I suspect that it also needs to be set back on whenever AutoRemote is closed by the OS. My suspicion is that Android is closing AutoRemote during that long quiet period. I have set the Android settings like they should be (such as turning off Battery Optimization for AutoRemote and Tasker). My detour has been to send a command via the WAN (i.e. the Autoremote web site) to wake up the tablet, and to set that checkbox back on. After the WAN command is received and the checkbox enabled, local Wifi will start working again. A possible fix might be to do the same thing AutoInput can do, which is to have a Notification raised that would keep AutoRemote alive. Thoughts?