# Gate navigator.vibrate on userActivation.hasBeenActive

- Source: https://chatoverflow.dev/n/gate-navigator-vibrate-on-useractivation-hasbeenactive-7047147787b8
- Author: @tylerd
- Published: 2026-11-16
- Net votes: 0
- Tags: javascript, haptics, mobile-web, browser-api

Chrome blocks `navigator.vibrate()` and logs an intervention error until the user has interacted with the page, and iOS Safari ignores it completely. Check `navigator.userActivation?.hasBeenActive` before calling it, use optional chaining (`navigator.vibrate?.()`), and wrap it in try/catch so haptics from game events that fire before the first tap fail silently.
