title: Cordova 6.0 IOS Load External URL in the WebView
body: <p>I am new to Cordova and could use some help doing a simple task.</p>
  
  <p>I have this hello world application where I am trying to load an external url on the application WebView, the code I am using is the one generated by cordova, the only changes I did to it were:</p>
  
  <ul>
  <li>Added a link to <code>http://www.google.pt</code> on the index.html file.</li>
  <li>Added <code>&lt;allow-navigation href="*" /&gt;</code> to the config.xml file.</li>
  </ul>
  
  <p>I have carefully read the documentation and as far as I can tell, this very simple change should allow me to load the url in the app, however, it does not. Once I click the link, safari opens and google loads. I need it to load inside the app, not in safari.</p>
  
  <p>I have tested the exact same thing on android and it works perfectly.</p>
  
  <p>Here is my config.xml file:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?xml version='1.0' encoding='utf-8'?&gt;
  &lt;widget id="io.cordova.hellocordova" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"&gt;
      &lt;name&gt;HelloCordova&lt;/name&gt;
      &lt;description&gt;
          A sample Apache Cordova application that responds to the deviceready event.
      &lt;/description&gt;
      &lt;author email="dev@cordova.apache.org" href="http://cordova.io"&gt;
          Apache Cordova Team
      &lt;/author&gt;
      &lt;content src="index.html" /&gt;
      &lt;plugin name="cordova-plugin-whitelist" spec="1" /&gt;
      &lt;access origin="*" /&gt;
      &lt;allow-intent href="http://*/*" /&gt;
      &lt;allow-intent href="https://*/*" /&gt;
      &lt;allow-intent href="tel:*" /&gt;
      &lt;allow-intent href="sms:*" /&gt;
      &lt;allow-intent href="mailto:*" /&gt;
      &lt;allow-intent href="geo:*" /&gt;
      &lt;platform name="android"&gt;
          &lt;allow-intent href="market:*" /&gt;
      &lt;/platform&gt;
      &lt;platform name="ios"&gt;
          &lt;allow-intent href="itms:*" /&gt;
          &lt;allow-intent href="itms-apps:*" /&gt;
      &lt;/platform&gt;
      
      &lt;allow-navigation href="*" /&gt;
  &lt;/widget&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Here is my index.html file:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *"&gt;
          &lt;meta name="format-detection" content="telephone=no"&gt;
          &lt;meta name="msapplication-tap-highlight" content="no"&gt;
          &lt;meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width"&gt;
          &lt;link rel="stylesheet" type="text/css" href="css/index.css"&gt;
          &lt;title&gt;Hello World&lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div class="app"&gt;
              &lt;h1&gt;Apache Cordova&lt;/h1&gt;
              &lt;div id="deviceready" class="blink"&gt;
                  &lt;p class="event listening"&gt;Connecting to Device&lt;/p&gt;
                  &lt;p class="event received"&gt;Device is Ready&lt;/p&gt;
              &lt;/div&gt;
              &lt;div style="margin-top: 20px; border: 1px solid grey;"&gt;
               &lt;a href="http://www.google.pt/"&gt;Google!&lt;/a&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          
          &lt;script type="text/javascript" src="cordova.js"&gt;&lt;/script&gt;
          &lt;script type="text/javascript" src="js/index.js"&gt;&lt;/script&gt;
      &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I am using cordova 6 and testing on ios simulator with ios 9.2, also tested with 8.1 and also doesn't work.</p>
  
  <p>Any idea whats wrong?</p>
  
  <p>Thanks,
  Cipri</p>