Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vibration does not work in silent mode. #28

Closed
doong-jo opened this issue Jul 26, 2021 · 2 comments
Closed

Vibration does not work in silent mode. #28

doong-jo opened this issue Jul 26, 2021 · 2 comments

Comments

@doong-jo
Copy link

Vibration does not work when the mobile device settings are silent mode. Did you intent? If so, this seems to be stated together in the document.

Or do not you have a way to vibrate when it is silent mode?

@anssiko
Copy link
Member

anssiko commented Aug 13, 2021

Vibration does not work when the mobile device settings are silent mode. Did you intent? If so, this seems to be stated together in the document.

Thanks for your question. The following step allows implementers to follow conventions of the host OS in this regard, so this will vary depending on the OS:

An implementation MAY return false and terminate these steps.
NOTE
For example, an implementation might abort the algorithm because no vibration hardware is present, the user has set a preference indicating that pages at a given origin should never be able to vibrate the device, or an implementation might cap the total amount of time a page may cause the device to vibrate and reject requests in excess of this limit.

https://w3c.github.io/vibration/#dfn-perform-vibration

Please note the list in this note is open-ended.

Or do not you have a way to vibrate when it is silent mode?

There is no way to ensure vibrate will work in silent mode across all OSes. That is by design, to ensure privacy.

Hopefully this addressed your questions.

@anssiko anssiko closed this as completed Aug 13, 2021
@doong-jo
Copy link
Author

Thanks, anssiko

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants