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

Vibration API #22

@novaotp

Description

@novaotp

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)

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghelp wantedExtra attention is needed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions