Does anybody know a way to keep a timer or countdown going when user closes the app?
Does it really stop when you close the app??.. interesting. ![]()
Hey @LoneWolf
Trying to help out here…
I noticed @Victor has some experience with the timer.
Maybe he knows about keeping the timer going.
I tested it, and it stopped. Maybe it does not stop if your app is published?!?
That doesn’t make sense because you can choose hours, and I doubt they designed it that way… to keep the app open for hours… I’ll keep testing.
Countdown timer runs in the app context. I.e. if the app is running → timer is running; if the app is closed → there is no timer.
So there are 2 possible workarounds for this:
- The first one can exploit the fact that countdown timer requires a number of seconds as a parameter. This means that if we can calculate the remaining number of seconds after we relaunch the app, we still can display timer with the correct countdown value. A couple of videos I’ve made long time ago use this principle:
https://youtu.be/XwltFUfBsLk
https://youtu.be/VEXxzOHEsQQ - However, if we need to execute some action(s) when the countdown finishes, at the time it finishes, we can’t rely on the timer running in the app. Remember, if the app is closed → there is no timer. So some backend 3rd party solution is needed for this - e.g. Make, Zapier, etc etc etc.
Best,
Victor.
