title: Barcode Scanner using Ionic/ngcordova, not getting data
body: <p>I've got a controller:</p>
  
  <pre><code>.controller('BarCodeScanCtrl', function($scope, $cordovaBarcodeScanner) {
  
      $scope.scanBarcode = function() {
          $cordovaBarcodeScanner.scan().then(function(barcodeData) {
              // Success! Barcode data is here
              console.log(barcodeData.text);
              alert('barcode scanned:' + barcodeData);
  
          }, function(error) {
              alert('Error');
              console.log(error);
              // An error occurred
          });
  
      };
  });
  </code></pre>
  
  <p>I'm using the QR code generator: <a href="http://www.qr-code-generator.com/" rel="nofollow">http://www.qr-code-generator.com/</a> but I can't seem to retrieve any of the data I'm inputting. It's returning the <code>barCode</code> object the values of <code>text</code> &amp; <code>format</code> properties are empty. The <code>cancel</code> property is <code>true</code>.</p>
  
  <pre><code>{
    "cancelled": true,
    "text":"",
    "format": ""
  }
  </code></pre>
  
  <p>Any ideas?</p>