Hacker News new | ask | show | jobs
by chrisdsaldivar 1670 days ago
You can play sound with the audio API since the user is interacting with the page. However, the vibration API is only implemented in Chrome and Firefox on mobile. Safari removed it from WebKit.

https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_A...

https://developer.mozilla.org/en-US/docs/Web/API/Vibration_A...