Skip to main content
The keep screen on JavaScript Bridge method lets you override the device’s default screen-lock/timeout behavior so the screen stays awake while your app is in the foreground. It’s part of Median’s device screen control feature set, alongside screen brightness and full screen.

Why use keep screen on

  • Navigation and map apps: Keep turn-by-turn directions or live tracking visible on screen during a trip, without users having to keep tapping to wake the device.
  • Presentation and kiosk displays: Hold a screen awake indefinitely for signage, in-store kiosks, or presentation mode where no one is actively touching the device.
  • QR code and barcode display: Keep a boarding pass, ticket, or payment QR code visible long enough to be scanned, even if the user pauses before presenting it.
  • Fitness and workout sessions: Keep workout timers, stats, or instructional content visible throughout an active session without the screen dimming or locking.

JavaScript Bridge implementation

Enable keep screen on

Prevents the device screen from locking or dimming while your app is active.

Disable keep screen on

Returns the screen to the device’s normal lock/timeout behavior.
Last modified on December 3, 2026