|Topic was automatically imported from the old Question2Answer platform.
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?
- how does an alarm-app on the phone keep running in the background?
They probably hook directly into the operating system because they’re programming in an android app developing environment. There are a lot of things you can do while programming an android app natively that you can’t do when exporting a Godot game to android.
- Is there any way to have a Godot-made program do the same?
Unless someone else knows otherwise, I highly doubt it.
timothybrentwood | 2021-07-26 14:25
Alright, that makes sense. Thanks for your answer!
pferft | 2021-07-26 14:28