title: Cordova - how to redirect to another page. Always open in new external browser
body: <p>In my index.html file I have <strong>window.location='http:....'</strong>, and I am able to release the application to android. </p>
  
  <p>When running the application on an android phone, i am <strong>asked what browser</strong> I should open it with, chrome or browser. </p>
  
  <p>Obviously, my intention is to run the external application as a phonegap application. </p>
  
  <p><strong>Is this not posbbile?</strong></p>
  
  <p>This guide also suggests this to be possible: </p>
  
  <p><a href="http://antonylees.blogspot.se/2013/02/launch-website-as-mobile-app-using.html" rel="nofollow noreferrer">http://antonylees.blogspot.se/2013/02/launch-website-as-mobile-app-using.html</a></p>
  
  <p><strong>index.html</strong></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;!--
          &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 *; img-src 'self' data: content:;"&gt;
      --&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;/head&gt;
  &lt;body&gt;
      &lt;script type="text/javascript" src="cordova.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript"&gt;
  
          document.addEventListener("deviceready", function() {
              window.location = "http://81.224.20.10:8080";
          }, false);
      &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>config.xml</strong></p>
  
  <pre><code>&lt;?xml version='1.0' encoding='utf-8'?&gt;
  &lt;widget id="mycmpany.tv" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"&gt;
      &lt;name&gt;mycmpany.tv&lt;/name&gt;
      &lt;description&gt;
          Watch Tv from all over the world, anywhere, everywhere.
      &lt;/description&gt;
      &lt;author email="mo@mycmpany.com" href="http://mycmpany.tv"&gt;
          mycmpany.tv team
      &lt;/author&gt;
      &lt;content src="index.html" /&gt;
      &lt;plugin name="cordova-plugin-whitelist" spec="1" /&gt;
  
      &lt;access origin="http://83.254.80.10:8080" subdomains="true"/&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;preference name="android-minSdkVersion" value="18"/&gt;
          &lt;preference name="android-targetSdkVersion" value="23"/&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;/widget&gt;
  </code></pre>
  
  <p><strong>What am I missing?</strong></p>
  
  <p>Note, I tried with the cordova.InAppBrowser but unfortunately you'd get the adress bar and all there, and still not a great solution. </p>