Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

Vibration API #22

Open
novaotp opened this issue Jul 19, 2024 · 0 comments
Open

Vibration API #22

novaotp opened this issue Jul 19, 2024 · 0 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@novaotp
Copy link
Owner

novaotp commented Jul 19, 2024

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)

@novaotp novaotp added bug Something isn't working help wanted Extra attention is needed labels Jul 19, 2024
@novaotp novaotp self-assigned this Jul 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant