# How to detect when application is closing

**URL:** <https://community.thunkable.com/t/how-to-detect-when-application-is-closing/403198>\
**Category:** Questions about Thunkable X\
**Created:** [January 12, 2020, 9:19am UTC](https://community.thunkable.com/t/how-to-detect-when-application-is-closing/403198 "2020-01-12T09:19:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AcrobatEpee](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/acrobatepee/32/26336_2.png) [@AcrobatEpee](https://community.thunkable.com/u/AcrobatEpee)\
**Post date:** [January 12, 2020, 9:19am UTC](https://community.thunkable.com/t/how-to-detect-when-application-is-closing/403198/1 "2020-01-12T09:19:59Z")

</div>

Hey ! I’m looking forward to learn how to detect when user is closing the app so we can execute one last block before it, is that possible ? If it isn’t, how would you guys suggest coming around it ? Thanks ^^

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [February 17, 2021, 2:13pm UTC](https://community.thunkable.com/t/how-to-detect-when-application-is-closing/403198/2 "2021-02-17T14:13:02Z")

</div>

2 posts were merged into an existing topic: [[Solved] Can I use a button to close an app?](https://community.thunkable.com/t/solved-can-i-use-a-button-to-close-an-app/11747)

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [February 17, 2021, 2:13pm UTC](https://community.thunkable.com/t/how-to-detect-when-application-is-closing/403198/3 "2021-02-17T14:13:02Z")

</div>


