Desktop timer not firing when app minimized or window covered

I have a desktop application with a multipe mode timer which does NOT fire when I minimize the window, or if the window is covered by other processes. (If not minimized and not covered, yet not the foreground app either it does continue to fire.)

Based on a long ago forum thread I can’t find now, I am creating the timer via code at the app level in app.open(), not associated with a window. The timer object is a subclass with the super set to Timer.

The language reference makes it sound like it should still fire anyway:

I can’t find anything in Feedback about this.

Environment:
OSX 10.12.6 Sierra
Xojo 2016 R4.1
Desktop project, 32-bit

The mode remains set to 2. If I minimize the app’s window, the timer stops firing. When I restore the window, the timer resumes. Same for if the window gets completely covered by other tasks.

Any suggestions? Should I try with a non-subclassed Timer?

Chances are that your app is entering AppNap. You can check this in the activity monitor by adding the AppNap column.

Thanks – did not think of that. I’ll check it out.

See this thread for some hints…
https://forum.xojo.com/39770-download-paused-when-mac-is-locked

App Nap :frowning: