title: Display inside an iframe a html file located outside of the www folder -- works in InAppBrowser or parsing the text
body: <p>I managed to download some On-Demand Resources into my Cordova App using a custom plugin that I built.</p>
  
  <p>What I need to do now is load them inside an iframe in my App. Is this possible??</p>
  
  <p>If they were located in the (sigh, read-only) www folder I could simply point to <code>${cordova.file.applicationDirectory}/www/game.html</code><br>
  ...but being them in the Library folder (eg. see path below) is there a way to display them inside an iframe?<br>
  <sub><i>('/var/mobile/Library/OnDemandResources/AssetPacks/2F2887A0-7B16-4S5D-83C2-1C588A69DA80/15533301173473852725/com.us-company.sports-beta-enterprise.asset-pack-5a105e8b9d10e3329780d62ea2265d8a.assetpack/game.html')</i></sub></p>
  
  <p><br>
  The only way I managed to display them so far is:<br><br>
  1. <strong>InAppBrowser</strong> using a <em>cdvfile://localhost</em> path (see below) --> but I would like to avoid this<br>
  <sub><i>(cdvfile://localhost/root/Users/user/Library/Developer/CoreSimulator/Devices/D016D3BC-E9F9-43F2-8EC1-9A471819A9B5/data/Library/OnDemandResources/AssetPacks/11129225-E96A-4BEC-9051-735912378DB0/15538308173473832725/com.us-company-us.sports-beta-enterprise.asset-pack-5a105e8b9d40e1329780d62ea2265d8a.assetpack/flying-block-game.html)</i></sub><br><br>
  2. Parsing the html text myself using <strong>document.createRange</strong> + <a href="https://developer.mozilla.org/en-US/docs/Web/API/Range/createContextualFragment#Example" rel="nofollow noreferrer">createContextualFragment</a> --> becomes complex to manage for non-trivial games.</p>
  
  <p>Any help displaying this inside an iframe in the App itself so that all requests go through the Ionic engine and have my own <em>iosapp://</em> custom scheme instead of <em>cdvfile://localhost</em> (that will likely result in CORS blockers)?</p>
  
  <p>In alternative, would it work using a different plugin for a local webserver that serves those ODR downloaded files?</p>
  
  <p>&nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp; <sub><sub><sub><a href="https://github.com/ionic-team/cordova-plugin-ionic-webview/issues/547" rel="nofollow noreferrer">Github issue</a></sub></sub></sub></p>