> For the complete documentation index, see [llms.txt](https://help.twinr.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.twinr.dev/app-settings/prevent-app-sleep.md).

# Prevent App Sleep

Stop the screen dimming or locking while your app is open.

Applies to **iOS and Android**.

**Keep the screen awake** stops the device dimming or sleeping while your app is in the foreground. Normally a phone locks itself after a short idle period; with this on, it will not do so while your app is open.

## When to turn it on

Turn it on when people look at the screen without touching it:

* a scanner or kiosk app
* a recipe, score or instruction screen someone follows while working
* anything running on a display that should stay lit

{% hint style="warning" %}
**This drains the battery.** The screen is the biggest power draw on a phone, so leave it off unless your app genuinely needs it. It only applies while your app is in the foreground — the phone sleeps as usual once someone switches away.
{% endhint %}

Turn it on in **App Settings**, then **Save as draft**. It takes effect on your next build.
