WebHaptics – Haptic feedback for the mobile web
16 points by zanlib
16 points by zanlib
I always thought this was yet another API never implemented by iOS but it actually works! Last time I tested navigator.vibrate() a couple of years ago it didn't work at all, and now it does!
They should update the caniuse: https://caniuse.com/mdn-api_navigator_vibrate because it's currently "Not supported" on all versions of iOS
edit: "they" may as well be me: https://github.com/mdn/browser-compat-data/issues/29166
This doesn't seem to work on Firefox on android
From caniuse:
Vibration is disabled. If the window is visible, then navigator.vibrate() returns true, but no vibration takes place (regardless of hardware support). Originally, the intent was to disable it for cross-origin frames only (bug 1591113), but the feature was not re-enabled due to abuse concerns (bug 1653318).
not sure why, but it doesn't work on chrome either (nor firefox) on android (nothing phone 2a)
Bug 1653318 "Decide what to do with navigator.vibrate()". Did work in Cromite for me though.