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

**URL:** <https://community.thunkable.com/t/how-would-i-make-a-timer-work-after-i-close-the-application-or-device/1042067>\
**Category:** Questions about Thunkable X\
**Created:** [January 2, 2021, 7:33am UTC](https://community.thunkable.com/t/how-would-i-make-a-timer-work-after-i-close-the-application-or-device/1042067 "2021-01-02T07:33:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![aleahv2mo54](https://avatars.discourse-cdn.com/v4/letter/a/6a8cbe/32.png) [@aleahv2mo54](https://community.thunkable.com/u/aleahv2mo54)\
**Post date:** [January 2, 2021, 7:33am UTC](https://community.thunkable.com/t/how-would-i-make-a-timer-work-after-i-close-the-application-or-device/1042067/1 "2021-01-02T07:33:02Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![chilledtimes.edition](https://avatars.discourse-cdn.com/v4/letter/c/edb3f5/32.png) [@chilledtimes.edition](https://community.thunkable.com/u/chilledtimes.edition)\
**Post date:** [January 2, 2021, 7:55am UTC](https://community.thunkable.com/t/how-would-i-make-a-timer-work-after-i-close-the-application-or-device/1042067/2 "2021-01-02T07:55:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![drted](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/drted/32/92694_2.png) [@drted](https://community.thunkable.com/u/drted)\
**Post date:** [January 2, 2021, 11:14am UTC](https://community.thunkable.com/t/how-would-i-make-a-timer-work-after-i-close-the-application-or-device/1042067/3 "2021-01-02T11:14:51Z")

</div>

Check out this example [How to create a timer that runs in the background or with the app closed completely](http://community.thunkable.com/t/how-to-create-a-timer-that-runs-in-the-background-or-with-the-app-closed-completely/515590)

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [January 2, 2021, 11:16am UTC](https://community.thunkable.com/t/how-would-i-make-a-timer-work-after-i-close-the-application-or-device/1042067/4 "2021-01-02T11:16:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:31pm UTC](https://community.thunkable.com/t/how-would-i-make-a-timer-work-after-i-close-the-application-or-device/1042067/5 "2024-11-08T13:31:07Z")

</div>


