Hi Ryan,
I am facing the same issue and the barcode scanner is not at all working on my device.
The code is :-
onBarCodeScan: function(){
var that = this;
var code = "";
cordova.plugins.barcodeScanner.scan(
function (result) {
code = result.text;
console.log("This is the code: " + code);
that.getView().byId("searchField").setValue(code);
that.onSearch();
},
function (error) {
alert("Scanning failed: " + error);
}
);
},
Can you please help me out on this.
Thanks and Regards,
Kushagra Jain