# How can I check my app's state (foreground or background)?

**URL:** <https://forums.unrealengine.com/t/how-can-i-check-my-apps-state-foreground-or-background/416130>\
**Category:** Platform & Builds\
**Tags:** app, Mobile, mobile-device, unreal-engine, Blueprint, question\
**Created:** [February 1, 2018, 2:36pm UTC](https://forums.unrealengine.com/t/how-can-i-check-my-apps-state-foreground-or-background/416130 "2018-02-01T14:36:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![titoro](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@titoro](https://forums.unrealengine.com/u/titoro)\
**Post date:** [February 1, 2018, 2:36pm UTC](https://forums.unrealengine.com/t/how-can-i-check-my-apps-state-foreground-or-background/416130/1 "2018-02-01T14:36:04Z")

</div>

I want to know when my app is foregrounded.  
Then I calculate elapsed time and give reward by elapsed time.  
But I can’s find a way to check when my app is foregrounded.  
Please help me.

---

<div class="post-metadata">

**Author:** ![Kokuyouseki](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kokuyouseki](https://forums.unrealengine.com/u/Kokuyouseki)\
**Post date:** [March 14, 2021, 11:33am UTC](https://forums.unrealengine.com/t/how-can-i-check-my-apps-state-foreground-or-background/416130/2 "2021-03-14T11:33:23Z")

</div>

I know this is old but apparently nobody found a better way so:  
Rama’s famous Victory plugin has a check against this very thing. Just start typing fore ground and you will find it quick. Rama is basically a living saint for the religion of blueprints at this point…
