Web Haptic Feedback: Why It Refuses to Be More Tactile
Article Summary
Katarzyna Smolen reveals why your phone's haptic engine can do amazing things in native apps but almost nothing on the web. The limitation isn't hardware: it's a deliberate privacy decision.
Modern smartphones have sophisticated haptic hardware capable of rich tactile feedback, yet web browsers expose almost none of it. While native apps on iOS and Android can create nuanced vibration patterns with varying intensity and frequency, the web is stuck with a single API: navigator.vibrate(). This article explains the privacy and security tradeoffs behind that gap.
Key Takeaways
- Vibration motors have unique fingerprints detectable by gyroscopes, enabling permanent device tracking
- navigator.vibrate() only controls duration, not amplitude, frequency, or waveform
- Safari doesn't support vibration API due to quality and privacy concerns
- Proposed Web Haptics API uses semantic effects like 'tick' instead of raw waveforms
- Pulsar library simulates intensity using PWM-style timing patterns on web
Web haptics remain deliberately limited because exposing advanced vibration control creates fingerprinting vectors that could track users across browsers and sessions, even in incognito mode.
About This Article
Smartphones can produce complex haptic effects with varying amplitude and frequency, but the web vibration API only lets developers control duration. This gap means web experiences can't match the tactile quality of native apps.
Katarzyna Smolen's article describes how the Pulsar library works around this limitation. It simulates intensity and frequency using PWM-style vibration timing on top of navigator.vibrate(), letting developers build more detailed tactile patterns within the existing API.
A proposed Web Haptics API would move away from direct hardware control toward semantic effects like 'tick' and 'align'. Browsers could then translate what developers want into responses appropriate for each device, while keeping privacy protections that prevent fingerprinting based on vibration motor characteristics.