title: Cordova InAppBrowser.open. Links are opening on safari instead of opening inside the app
body: <p>My small cordova app is quite simple and, after checking that there's a connection, opens the url of a website (ex. <a href="http://www.example.com" rel="nofollow">http://www.example.com</a>).
  I want that all the urls/websites are showed within the app.</p>
  
  <p>The main problem is that on iOS opens only the first page in the app and any other link that is clicked/touched opens in the safari browser.</p>
  
  <p>in the config.xml
  I already set</p>
  
  <pre><code>&lt;access origin="*" /&gt;
  </code></pre>
  
  <p>while in the index.js I added</p>
  
  <pre><code>  onDeviceReady: function() {
          window.open = cordova.InAppBrowser.open;
          if (navigator.connection.type == Connection.NONE) {
        navigator.notification.alert('An internet connection is required to continue');
        } else {
            setTimeout(function(){window.open('http://www.example.com', '_self', 'location=no')} , 3000);
  
        }
      },
  </code></pre>
  
  <p>I already tried to use my code without inappbrowser (without the second line in the previous code and without the plugin).
  I already removed and readded the platforms.
  I recreated the whole application.
  I checked the app (cordova platform check).</p>
  
  <p>On anrdoid and blackberry it works as I need it with the navigation inside the app (with and without inappbrowser)!</p>
  
  <p>cordova 6.1.1
  mac mini - osx el capitan 10.11.5</p>