Vibrates the device for a specific length of time.
Time The time (in milliseconds) to vibrate the device.
When used in an Android application, the user needs to interact at least once to enable vibration. For example a 'Start' button can be set to force a first interaction. Once unlocked, it will work for the whole app lifetime. It's a Chrome protection to avoid nasty app to vibrate without any user consent.
VibrateDevice(1000) ; Vibrate the device for 1 second.