This question is locked. New answers and comments are not allowed.
Hi,
im testing the Cordova (3.2.0) Barcode Scanner plugin on a iPhone 4S (7.0.4) and have an issue with the scanning function
the problem is if I insert an alert into the function (result) {} block, It keeps appearing forever (im stuck in the alert popup). Must I cancel the event propagation somehow? If yes how? Im checking at the doc on the GitHub repository here and seems like we dont have to (even If I have the same issue with that code).
Im asking because I want to call a webservice after the scan and afraid to call it forever for the same scan.
you can use my MIST sample called sample-barcode-scanner for testing my issue
TIA
im testing the Cordova (3.2.0) Barcode Scanner plugin on a iPhone 4S (7.0.4) and have an issue with the scanning function
cordova.plugins.barcodeScanner.scan(
function
(result) {
if
(!result.cancelled) {
$(
"#result"
).text(result.format +
" | "
+ result.text);
}
},
function
(error) {
alert(
"failed"
);
console.log(
"Scanning failed: "
+ error);
});
the problem is if I insert an alert into the function (result) {} block, It keeps appearing forever (im stuck in the alert popup). Must I cancel the event propagation somehow? If yes how? Im checking at the doc on the GitHub repository here and seems like we dont have to (even If I have the same issue with that code).
Im asking because I want to call a webservice after the scan and afraid to call it forever for the same scan.
you can use my MIST sample called sample-barcode-scanner for testing my issue
TIA