10-27-2022 10:35
10-27-2022 10:35
I wrote a tennis scorer app, and it works fine, except if the play stops for a few minutes, the app times out and closes. Stopping for a few minutes is usual between sets in tennis, so this makes my app useless. I tried adding a timer so there would be some activity, but this didn't help. How can I disable auto-shutdown?
Answered! Go to the Best Answer.
10-27-2022 12:28
10-27-2022 12:28
10-27-2022 12:28
Set appTimeoutEnabled false.
10-28-2022 07:01
10-28-2022 07:01
Thank you!
10-28-2022 08:38
10-28-2022 08:38
In case someone else needs this mod, the complete fix is:
import appbit from "appbit";
appbit.appTimeoutEnabled = false;