in my mobile app I'm working on, a counter is continuing to count up. Putting it into
onscreen == MainLoop.NOTIFICATION_WM_FOCUS_OUT: and later back to „focus in“ again, on Windows 10 the counter did not interrupt but shows the „right“ number, so I assume it just continued running in the background. On Android, however, it interrupts, resuming counting from where it focussed out (which is too bad...).
I'd be very interested if someone could tell me why Windows doesn't interrupt.
However, my main question on that note is, naturally: how does an alarm-app on the phone keep running in the background?
These you can (assumingly?) close down completely after setting an alarm (or a timer...), but something has to continue running in the background so it can fire up at the right time.
Is there any way to have a Godot-made program do the same?