2 Replies Latest reply on May 11, 2017 10:20 PM by IronADDT

    (PhoneGap Build) InAppBrowser and BarcodeScanner plugins

    IronADDT Level 1


      I'm searching a way to open the url generate from a qr-code with "BarcodeScanner" on a InAppBrowser's window inside in the app.


      I have tried with the basic instructions but BarcodeScanner plugin view me only a popup with the url, without possibility to open it in the AppBrowser's window.

      function barcodescanner(){
        "use strict";
            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);
                preferFrontCamera : false, // iOS and Android
                showFlipCameraButton : true, // iOS and Android
                showTorchButton : true, // iOS and Android
                torchOn: true, // Android, launch with the torch switched on (if available)
                prompt : "Place a barcode inside the scan area", // Android
                resultDisplayDuration: 500, // Android, display scanned text for X ms. 0 suppresses it entirely, default 1500
                formats : "QR_CODE,PDF_417", // default: all but PDF_417 and RSS_EXPANDED
                orientation : "landscape", // Android only (portrait|landscape), default unset so it rotates with the device
                disableAnimations : true, // iOS
                disableSuccessBeep: false // iOS


      In the page this is the link:

      <button onClick="barcodescanner()">read qr-code</button>



      Is possible to configurate BarcodeScanner plugin to open the url generate from the qr-code in the AppBrowser's window?