Skip to Content
Platform.Ontology

Screen Wake Lock

Keeps the screen from dimming or sleeping while the tab is visible; no prompt.

Does something on your deviceScreen and windowsPower and screenWeb browsersWhile you use it

In one line

Can keep your screen awake while the tab is open and showing

Keeps the screen from dimming or sleeping while the tab is visible; no prompt.

A site can stop the screen going dark, which is useful for recipes, maps and video, but drains battery. The browser drops the lock the moment the tab is hidden, so it cannot run in the background.

What it can and can't do

What the user does: You start a recipe, a video, map directions or a slideshow.

It can

  • Stop the screen dimming or going to sleep
  • Hold it for as long as the tab is showing
  • Release it when it finishes

It cannot

  • Keep the screen on once you switch tabs or minimize, since it is released
  • Stop you locking the phone with the button
  • Hold it when the battery is very low, since the browser may refuse

Browser support

BrowserStatusFirst versionReleasedNote
ChromeSupported842020-07-27None
EdgeSupported842020-07-16None
FirefoxSupported1262024-05-14None
SafariSupported16.42023-03-27None
Safari on iPhoneSupported18.42025-03-31All iOS browsers use WebKit
Chrome on AndroidSupported842020-07-27None
Samsung InternetSupported14.02021-04-17None

How a site asks for it

APInavigator.wakeLock.request('screen'); sentinel.release()
Permissions policyscreen-wake-lock
Browser compat keysapi.Navigator.wakeLock
api.WakeLockSentinel
How access is grantednone
What the user seesNone (no browser prompt)
Needs a secure context (HTTPS)Yes
Needs a user gestureNo
Activationnone
How long it lastsReleased when the tab is hidden, the sentinel is released, or the page closes; must be requested again after a visibilitychange
How to take it backNothing to revoke (no permission is stored)
Inside an iframeCross-origin iframes need allow="screen-wake-lock" (Permissions Policy screen-wake-lock, default self)

Typical flow

  1. Page calls navigator.wakeLock.request('screen')
  2. Browser grants a sentinel with no prompt if the tab is visible
  3. Screen stays awake until released or the tab is hidden
  4. Page must re-request on return

Data you get

Shape: none

No individual data fields. The signal is the access itself.

Technical limits

  • Secure context only
  • Only the screen type exists (a system lock type was dropped from the spec)
  • Request fails with NotAllowedError when the document is not visible, Permissions Policy forbids it, or the device is in battery saver or low battery (browser choice)
  • The lock is released automatically on visibilitychange to hidden; it never keeps the screen on in the background
  • iOS Home Screen web apps did not honour it until iOS 18.4; Safari tabs since 16.4

The story

What it is

Keeps your screen from dimming or sleeping while a page is visible, with no prompt.

For you

Your screen stays bright while you cook from a recipe, watch a video or follow a map. You get no popup. The lock ends when you switch tabs.

For makers

It keeps people from losing their place when the screen dims. It also keeps them looking at the app longer, which lifts watch time and ad time. It does use more battery.

Where you see it

TypeExampleApps
gamesA browser game or cloud game stream keeps the screen awake between taps, so a long match is not interrupted.Xbox Cloud Gaming, GeForce NOW
videoA video site keeps your screen on while a show plays so it does not dim in the middle.YouTube
travelA web map keeps the screen lit during a walk or drive so directions stay visible.Google Maps
productivityA recipe or slide deck page keeps the screen on while you cook or present.Google Slides
fitnessA web workout timer stays on screen between sets.None named
liveA live auction or event page keeps the screen awake so you do not miss the last minute.None named
smart-homeA web dashboard on a wall tablet stays on as an always on display.None named

Risks

  • Drains battery
  • Keeps you staring

What the platform says

Good uses and abuse

Legitimate uses

  • Recipe and reading apps
  • Presentations and slide shows
  • Navigation, video call and boarding pass pages

Known abuse

  • Battery drain on purpose
  • Keeping a mining or ad page awake while visible

Scores

ScoreValueMeaning
Sensitivity1 of 5How revealing the data is
Utility4 of 5How useful it is to honest apps
Friction0 of 5How much the user has to do
Fingerprint bitsNot ratedRough identifying entropy, when known

History

  • 2020-07, Chrome 84: Screen Wake Lock ships
  • 2023-03, Safari 16.4: Safari ships Wake Lock in the browser
  • 2024-05, Firefox 126: Firefox ships Wake Lock
  • 2025-03, Safari 18.4: Works in iOS Home Screen web apps

Sources

How well checked: Based on official documentation.

On this page