I'm writing an meteor app using the phonegap plugin barcodeScanner https://github.com/phonegap/phonegap-plugin-barcodescanner everything is working fine except that i don't find a way to disable the "beep" sound that is launch after a barcode scan success. Does anyone find a way on how to do that ?
The documentation shows that a disableSuccessBeep
parameter can be passed to disable the beep.
cordova.plugins.barcodeScanner.scan(
function (result) {
// Do something with the barcode
},
function (error) {
// Handle error
},
{
disableSuccessBeep: true
}
);
Note that the disableSuccessBeep
parameter only disables the beep on iOS. For other platforms that beep, you can upload a silent sound file as @Phonolog pointed out in the comments:
Take a look in here. It seems to be possible to overwrite the platforms/android/res/raw/beep.ogg with a silent ogg.