1 Reply Latest reply on Sep 30, 2017 12:50 PM by kerrishotts

    inappbrowser to work with React.js build


      I have been struggling with this issue for some time now.


      I have built my app in React.js. I added the bundled js file in PhoneGap and it works fine. The problem is that I have a few links to websites which don't open in the inappbrowser.


      My links in the react.js are as follows <a href="http://www.towebsite.com" target="_blank" rel="noopener noreferrer">Website</a> and I am calling the inappbrowser in my index.js file;


      bindEvents: function() {

         document.addEventListener('deviceready', this.onDeviceReady, false);
         window.open = cordova.InAppBrowser.open;
      onDeviceReady: function() {

      // Update DOM on a Received Event
      receivedEvent: function(id) {

         console.log('Received Event: ' + id);


      I can't figure out what I am missing?