How would i make a timer work after i close the application or device?

I have been trying to make a timer but its just not coming to me :no_mouth:

2 Likes

For this, try using some external api , because the timer in thunkable workes whenthe user is in the app

Check out this example How to create a timer that runs in the background or with the app closed completely

You can have a workaround.

Use a stored variable to save the time and store it in your device. Then your timer in your app just reads the time and compare it with the stored variable time.

Every time you start your app again, read the stored variable to compute the time.

When the timer function ends (training session or whatever) clear the stored variable.

It works because I used it in my app

2 Likes