Re: [vibration] Vibration does not work in silent mode. (#28)

> 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.

-- 
GitHub Notification of comment by anssiko
Please view or discuss this issue at https://github.com/w3c/vibration/issues/28#issuecomment-898489117 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 13 August 2021 14:16:06 UTC