I have a couple of timers in my Xojo program that send out a “heartbeat” message via a TCPSocket every second, to let the app they’re connected to know that the Xojo app is still “alive”.
Works fine when the Xojo app is on the screen. If I minimize the app or the screensaver comes on, after about 1 minute, the timers stop. They restart again after about 10-20 seconds, but that’s enough time for the connected app to feel that they’re disconneted.
Is it normal for a timer to pause (or maybe the app is sleeping) after it’s not in the foreground for a minute or so?
Other than forcing my app to never minimize, is there a way to keep a timer from “sleeping”?
Oh, this is when running on MacOS. I haven’t tested to see if this issue happens on Windows, but I will.