title: cordova remote android android app - load all other links in web browser
body: <p>So my app should be pretty simple, here is the scope: </p>
  
  <ol>
  <li><p>The entire app is a remote website.</p></li>
  <li><p>First page is the login on the remote server.</p></li>
  <li><p>After login just redirect to the remote home page, as the web page does automatically from a browser (but stay in the app).</p></li>
  <li><p>All links that reside within the main domain stay in app.</p></li>
  <li><p>All link from another domain open web browser.</p></li>
  <li><p>Cookies need to be enabled to stay logged in.</p></li>
  <li><p>I don't need to access any device API, everything is in the online website</p></li>
  </ol>
  
  <p>I have read several article on how to achieve this with Cordova, but my problem is - the first page loads from the server as desired, but after I login, the app opens the home page in a web browser.</p>
  
  <p>Here is my Cordova config.xml:</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='utf-8'?&gt;
  &lt;widget id="com.myremoteapp" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"&gt;
      &lt;name&gt;Remote Web App&lt;/name&gt;
      &lt;description&gt;
  Remote Web App description
      &lt;/description&gt;
      &lt;author email="contact@example.com" href="https://example.com"&gt;
      WebappAuthor
      &lt;/author&gt;
      &lt;content src="https://example.com/login" /&gt;
      &lt;access origin="https://example.com" subdomains="true"/&gt; 
      &lt;plugin name="cordova-plugin-whitelist" spec="1" /&gt;
      &lt;!--   &lt;content src="index.html" /&gt;   --&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;/widget&gt;
  </code></pre>
  
  <p>Note: I just edited these lines, to replace the default local index.html:</p>
  
  <pre><code>    &lt;content src="https://example.com/login" /&gt;
      &lt;access origin="https://example.com" subdomains="true"/&gt;
      &lt;!--   &lt;content src="index.html" /&gt;   --&gt;
  </code></pre>
  
  <p>Thanks, any tips are much appreciated.</p>