navigator.vibrate() is actually exactly the same format as vail messages are after the timestamp. In the Buzz method, should be able to add a vibrate call in the timeout callback.
Be sure to expose a switch to enable/disable vibration. Probably ought to default to disabled. And store the selected value in localStorage.
There's no way to detect whether vibration is available on the device, so we'll just have to display the switch for everybody.
navigator.vibrate()
is actually exactly the same format as vail messages are after the timestamp. In theBuzz
method, should be able to add a vibrate call in the timeout callback.Be sure to expose a switch to enable/disable vibration. Probably ought to default to disabled. And store the selected value in localStorage.
There's no way to detect whether vibration is available on the device, so we'll just have to display the switch for everybody.