notification.vibrate( )
notification.vibrate( )
navigator.notification.vibrate(milliseconds)
Vibrates the device for the specified amount of time.
Parameters #
- time: Milliseconds to vibrate the device. 1000 milliseconds equals 1 second (Number)
Supported Platforms #
- Android
- BlackBerry WebWorks (OS 5.0 and higher)
- iOS (OS 4.0 and higher)
Examples #
navigator.notification.vibrate(2500);
iOS Quirks
- time: Ignores the time and vibrates for a pre-set amount of time.
navigator.notification.vibrate(); navigator.notification.vibrate(2500); // 2500 is ignored