All Products
Search
Document Center

SuperApp:Beep

Last Updated:Jun 23, 2026

The WVNotification beep JS API allows your H5 application or mini program to trigger device beep sounds.

WVNotification.beep

Makes the device beep.

Input parameters

  • [int]count-Optional: The number of consecutive beeps. The default value is 1.

Callback parameters

No callback parameters. The success callback runs on success, and the failure callback runs on failure.

var params = {
        // The number of consecutive beeps.
        count: 3
};
window.WindVane.call('WVNotification', 'beep', params, function(e) {
        alert('success');
}, function(e) {
        alert('failure: ' + JSON.stringify(e));
});