Example
Reference
Methods
cancel() Android iOS
vibrate() with repetition enabled.
vibrate() Android iOS
pattern argument. On iOS, the vibration duration is fixed at roughly 400 milliseconds.
The vibrate() method can take a pattern argument with an array of numbers that represent time in milliseconds. You may set repeat to true to run through the vibration pattern in a loop until cancel() is called.
Parameters:

