Skip to main content

vibrate()

For the Mobile Imager (legacy), this activates the sled vibration motor for the specified duration in seconds.

This function can be used to emulate notification vibrations on Apple devices that do not have a built-in vibration motor, such as the iPod Touch 6.

AilaCordovaPlugin.vibrate(duration)

Parameters

  • duration (Number, required) - Vibration duration in seconds

Returns

Promise that resolves when vibration completes.

Example

// Vibrate for 1 second
AilaCordovaPlugin.vibrate(1);