title: Cordova app, using remote website - How to handle connection issues?
body: <p><strong>My problem</strong></p>
  
  <p>I'm working on a project where Cordova is being used to display a remote website within the app. Cordova.js is being run from the remote server, etc., and this works pretty well.</p>
  
  <p>I do have one issue though, especially on iOS devices.</p>
  
  <p>If the device lose connection at the same time as I press a link on the website, the page will turn blank, as if to load the next page - but since the connection is lost nothing will be loaded into this blank page. Given iOS devices lack of back-buttons or such there's no way to navigate from this blank page except by closing the app and re-opening it.</p>
  
  <p><strong>My attempted, and failed, sollution</strong></p>
  
  <p>So, given that I can use Cordova.js to check for connection issues, I figured that I could use an iframe to display the remote website. If the connection goes bye-bye I'd just display a simple error message inside the iframe.</p>
  
  <p>And well, this does work.</p>
  
  <p>BUT. And this is a big but. InAppBrowser will not run from an iframe. And I can't live without the InAppBrowser, since it's used to display quite a few important features within the app.</p>
  
  <p><strong>So</strong></p>
  
  <p>Does anyone know a way to either:</p>
  
  <p>a) Handle connection issues when running only remote content in the Cordova app?</p>
  
  <p>b) Run the InAppBrowser from within an iframe? (I suppose I could use PostMessage etc. between the frames, but since I'm already sending/receiving data from the InAppBrowser I would love to avoid this in order to limit complexity).</p>
  
  <p>c) Solve this issue in another fancy manner?</p>