Its been noticed that the success callback of encode functionality does not work as expected, it opens up a new screen/page with encoded text’s image(barcode image) which is the expected result.But whatever be the code written inside the success callback function , that part of code is not getting executed. for example if i put an alert box inside the success callback of encode function that alert message is not getting displayed, the program flow is not executing those code written inside success callback function.
try {
cordova.plugins.barcodeScanner.encode(type, text, function (success) {
// below code is not getting executed
// success
alert("Barcode encode success callback");
}, function (error) {
alert("Fail");
});
} catch (oError) {
}
Its been noticed that the success callback of encode functionality does not work as expected, it opens up a new screen/page with encoded text’s image(barcode image) which is the expected result.But whatever be the code written inside the success callback function , that part of code is not getting executed. for example if i put an alert box inside the success callback of encode function that alert message is not getting displayed, the program flow is not executing those code written inside success callback function.