title: Working QR code scanner for PhoneGap
body: <p>I have successfully followed this thread<br>
  <a href="https://stackoverflow.com/questions/18142247/phonegap-3-0-0-barcodescanner-plugin">Phonegap 3.0.0: BarcodeScanner Plugin</a>  </p>
  
  <p>But it seems like it cannot scan Qr Code. Here is the screen shot from phone:  </p>
  
  <p><img src="https://i.stack.imgur.com/J3zPK.png" alt="enter image description here">  </p>
  
  <p>I have tried scanning a barcode image and it works fine. But not with QR images.<br>
  Any idea?</p>
  
  <p><strong>EDIT</strong>  </p>
  
  <pre><code>    var scanner = cordova.require("com.phonegap.plugins.barcodescanner.barcodescanner");
  
      scanner.scan(
          function (result) {
              alert("We got a barcode\n" +
                  "Result: " + result.text + "\n" +
                  "Format: " + result.format + "\n" +
                  "Cancelled: " + result.cancelled);
          },
          function (error) {
              alert("Scanning failed: " + error);
          }
      );  
  </code></pre>
  
  <p><strong>EDIT 2</strong><br>
  DuuhhH!!! The problem was the QR image, it has no margin as Sean Owen said.</p>