You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.
Checking if the method vibrate exists on the navigator object isn't reliable since it's implemented everywhere, even if it has no effect. Moreover, Firefox on Android denies the permission so I also have to check that.
Any suggestions on how to reliably check if the vibrate method actually works on the device and fallback to sound if not and/or detecting the browser like Firefox for Android ? (I'm aware that checking the UA is neither reliable nor recommended so I'm curious to know if there are alternatives)
The text was updated successfully, but these errors were encountered:
Putting it here because else I'll forget it.
Checking if the method
vibrate
exists on the navigator object isn't reliable since it's implemented everywhere, even if it has no effect. Moreover, Firefox on Android denies the permission so I also have to check that.Any suggestions on how to reliably check if the
vibrate
method actually works on the device and fallback to sound if not and/or detecting the browser like Firefox for Android ? (I'm aware that checking the UA is neither reliable nor recommended so I'm curious to know if there are alternatives)The text was updated successfully, but these errors were encountered: