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 is1.
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));
});