The BarcodeScanner Plugin on PhoneGap Build will be getting an update today, and apps using it will need to change their code to use cordova.require:
Old:
New:
More info:
https://github.com/phonegap/phonegap-...
http://simonmacdonald.blogspot.ca/201...
Will update this thread once the the new version is deployed.
Old:
window.plugins.barcodeScanner.scan(function(){ ... }, function(){ ... }, optionsObj)
New:
var scanner = cordova.require("cordova/plugin/BarcodeScanner");
scanner.scan(
function (result) {
alert("We got a barcode\n" +
"Result: " + result.text + "\n" +
"Format: " + result.format + "\n" +
"Cancelled: " + result.cancelled);
},
function (error) {
alert("Scanning failed: " + error);
}
);
More info:
https://github.com/phonegap/phonegap-...
http://simonmacdonald.blogspot.ca/201...
Will update this thread once the the new version is deployed.


