This plugin provides a way to vibrate the device.
cordova plugin add https://github.com/Rickgbw/cordova-plugin-vibrator
- Android
Vibrates the device for the specified amount of time.
vibration.vibrate(time)
- time: Milliseconds to vibrate the device. (Number)
// Vibrate for 2.5 seconds
vibration.vibrate(2500);
Cancel actual vibration
vibration.cancel()