wildabeast / BarcodeScanner

Official repository now at [phonegap/phonegap-plugin-barcodescanner](http://github.com/phonegap/phonegap-plugin-barcodescanner).
968 stars 746 forks source link

Barcode Encode success callback not working as expected #308

Open binoyskumar opened 8 years ago

binoyskumar commented 8 years ago

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) {
    }