notification.beep()
notification.beep( )
navigator.notification.beep(times);
The device will play a beep sound.
Parameters #
- times: The number of times to repeat the beep (Number)
Supported Platforms #
- Android
- BlackBerry WebWorks (OS 5.0 and higher)
- iOS (OS 4.0 and higher)
Examples #
navigator.notification.beep(2);
iOS Quirks
- Ignores the beep count argument.
- There is no native beep API for iPhone.
- PhoneGap implements beep by playing an audio file via the media API.
- The user must provide a file with the desired beep tone.
- This file must be less than 30 seconds long, located in the www/ root, and must be named beep.wav
Android Quirks
- Android plays the default "Notification ringtone" specified under the "Settings/Sound & Display" panel.