Skip to Content
Platform.Ontology

User activation and idle inference

Tells whether the person has clicked or typed recently, and in Chromium whether they are idle.

Gets silentlySpeed and timingAttentionWeb browsersWhile you use it

In one line

Can see if you recently clicked or typed, and in Chromium if you are idle

Tells whether the person has clicked or typed recently, and in Chromium whether they are idle.

navigator.userActivation shows if a click or key happened. IdleDetector (permission gated, Chromium) reports user active or idle and screen locked. Without it, sites infer idle from the absence of input events.

What it can and can't do

What the user does: You click or type on the page. Idle checks need you to tap Allow

It can

  • Tell if you clicked or pressed a key lately
  • In Chromium, learn if you are active or idle, after you allow it
  • In Chromium, learn if your screen is locked, after you allow it

It cannot

  • See what you typed or clicked, only that you did
  • Get idle checks in Firefox or Safari
  • Get idle checks without your Allow
  • Learn why you are idle or what you are doing

How it differs between platforms: The idle permission works in Chrome and Edge only. The simple click check works in every browser.

Browser support

BrowserStatusFirst versionReleasedNote
ChromeSupported942021-09-21None
EdgeSupported1142023-06-02None
FirefoxSupported1202023-11-21BCD lists no support; agent research says otherwise
SafariSupported16.42023-03-27BCD lists no support; agent research says otherwise
Safari on iPhoneSupported16.42023-03-27BCD lists no support; agent research says otherwise
Chrome on AndroidSupported942021-09-21None
Samsung InternetSupported17.02022-05-04None

How a site asks for it

APInavigator.userActivation.hasBeenActive/isActive; new IdleDetector().start({threshold})
Permissions policyidle-detection
Browser compat keysapi.IdleDetector
api.UserActivation
How access is grantednone
What the user seesNot listed
Needs a secure context (HTTPS)Yes
Needs a user gestureNo
How long it lastsNot listed
How to take it backNot listed
Inside an iframeNot listed

Typical flow

  1. Check userActivation
  2. For IdleDetector, request permission
  3. Listen to change events

Data you get

What comes back: userState: active or idle, screenState: locked or unlocked
Shape: event

FieldTypeUnitRangePrecision
userStatestringNoneactive, idle60 s minimum threshold

Technical limits

  • IdleDetector is Chromium only, 60 s minimum threshold, requires permission
  • Never shows which apps are active

The story

What it is

A page can tell if you recently clicked or typed, and in Chromium, with permission, whether you are idle.

For you

Some features, like opening a popup, only work right after you tap or click. For the idle check, Chromium asks first, then a chat app can mark you as away or active.

For makers

User activation stops pages from playing sound or opening windows without you. Idle detection helps chat and collaboration apps show real presence and send notifications to the right device.

Where you see it

TypeExampleApps
messagingA work chat web app marks you away after you leave the computer, then sends alerts to your phone.Slack, Microsoft Teams, Google Chat
productivityA shared document editor shows who is active right now so teammates know who is working.Google Docs, Figma
gamesA browser game only starts sound and video after your first click, because browsers require it.None named
videoA video site pauses or lowers quality when you step away, to save data.None named
securityA banking site logs you out when you are idle, after a few minutes without activity.None named
adsAn ad site only counts a video as viewed if you interacted, which stops bots that play videos.None named
educationAn online exam page notes long idle gaps to review for possible cheating.None named

Risks

  • Presence is personal
  • Can feel like watching

What the platform says

Good uses and abuse

Legitimate uses

  • Chat presence, kiosks

Known abuse

  • Attention surveillance, proctoring

Scores

ScoreValueMeaning
Sensitivity2 of 5How revealing the data is
Utility2 of 5How useful it is to honest apps
Friction3 of 5How much the user has to do
Fingerprint bits2Rough identifying entropy, when known

History

  • 2021-09, Chrome 94: IdleDetector ships (permission prompt)

Sources

How well checked: Based on official documentation.

On this page