Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

notification.beep( )

...

Code Block
languagejs
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 #

Code Block
languagejs
linenumberstrue
navigator.notification.beep(2);
Info
titleiOS 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
Info
titleAndroid Quirks
  • Android plays the default "Notification ringtone" specified under the "Settings/Sound & Display" panel.