VibrateDevice()
Syntax
VibrateDevice(Time)Description
Vibrates the device for a specific length of time.
Parameters
Time The time (in milliseconds) to vibrate the device.
Return value
None.
Remarks
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.
Example
VibrateDevice(1000) ; Vibrate the device for 1 second.
Supported OS
Android, iOS