Im using barcodescanner and have a problem (big problem) and is when finish scan i use app.router.navigate(’/scan/’); but all javascript is execute becouse i have console.logs but stay in same page. any one know why or how to use barcode scan and open a page using route?
i just insert the call inside sucess and is working… before i have call a function on sucess and call the route page… but now is working!
working code!
cordova.plugins.barcodeScanner.scan(
function (result) {
if(!result.cancelled){
// In this case we only want to process QR Codes
if(result.format == “QR_CODE”){
// This is the retrieved content of the qr code
app.router.navigate('/qrcode/');
//console.log(value);
}else{
app.dialog.alert("Invalid!");
}
}else{
//alert("The user has dismissed the scan");
}
},
function (error) {
//alert("An error ocurred: " + error);
}