Cordova barcode scanner returns null in android version 4.4.4


#1

Hi…
When i trying to scan the qrcode using $cordovaBarcodeScanner, response object returns with: { text: “”, format:"" cancelled: true }. It works in ios gently. I have changed the button action ng-click =“readQR” to on-touch=“readQR” ,but no change. This is my code.

$scope.readQR = function(){
$cordovaBarcodeScanner.scan().then(function(imageData){
       console.log(imageData);
        $scope.qrData = imageData.text;
       },function(error) {
      });
}

Please provide the solution.Barcode scanner plugin version is 6.0.6