For the complete documentation index, see llms.txt. This page is also available as Markdown.

Keep device awake

The Keep Device Awake action node prevents the user's device from going to sleep while the app is in use. This action node is available in apps.

Usage

Use Keep Device Awake in apps where the screen needs to stay on without the user touching it, for example a dashboard on a wall-mounted screen, a step-by-step guide on a tablet, or a scanning station.

Set Mode to Enable to start preventing sleep, and run the action node again with Disable to let the device sleep normally. Toggle switches between the two, based on whether sleep prevention is currently active in the app.

Run the action node from an action that the user triggers, for example from an On Click event handler on a button. Browsers usually refuse to keep the device awake when the request doesn't come from a user interaction, for example in an On App Load action.

Properties

Property
Description

Mode

Select whether to start or stop preventing the device from sleeping. Toggle: Enable sleep prevention if it isn't active, otherwise disable it. Enable: Prevent the device from sleeping. This is the default. Disable: Let the device sleep normally.

Was this helpful?