Cordova/PhoneGap plugin to enable barcode scanning on Windows Phone 8 using the device's camera.
The plugin uses the native library ZXing.Net to decode the barcodes.
The look and feel of the barcode scanner view is consistent with the PhoneGap Build Android/iOS barcode scanner plugin
None
Using CLI:
Call the method window.cordova.plugins.barcodeScanner.scan, passing in a success and fail call back. Example:
function scanBarcode() {
function onSuccess(result) {
console.log("Barcode is: " + result.text);
console.log("Barcode format: " + result.format);
}
function onFail(error) {
console.log(error);
}
window.cordova.plugins.barcodeScanner.scan(onSuccess, onFail);
}
(Device will vibrate after detecting a barcode.)