title: How can I open an iframe in a phonegap/cordova app running on IOS?
body: <p>I have a webapp that I'm using with PhoneGap/Cordova to install in iOS and Android. At one point in the app I have an iframe that loads content from a second server. </p>
  
  <p>When I run the app from a browser, everything works as expected - the iframe opens in the same page and loads the content from the second site.</p>
  
  <p>When I run the webapp on an iPhone simulator using Cordova, when the iframe opens, iOS switches over to Safari and puts my app in the background.</p>
  
  <p>Steps taken:</p>
  
  <ol>
  <li>I added the second site to the "ExternalHosts" array in the Cordova.plist file.</li>
  <li>I created a config.xml file next to the index.html file in the /www directory, according to the PhoneGap/Cordova documentation (<a href="https://build.phonegap.com/docs/config-xml">https://build.phonegap.com/docs/config-xml</a>).</li>
  <li>I added a &lt;preference name="stay-in-webview" value="true" /&gt; tag to the config.xml file as a child of the main &lt;widget&gt; tag.</li>
  </ol>
  
  <p>My suspicion is that it is not reading/using the config.xml file, but there could be something else... Does anyone have any ideas what I might be doing wrong?</p>