I'm having some trouble getting links to open using the InAppBrowser in iOS with a Phonegap/Cordova set up.
I'm using the default template Cordova provides and adding this line to it:
<a href="#" onclick="cordova.InAppBrowser.open('http://apache.org', '_blank', 'location=yes');">Testing</a>
When I click the link, nothing happens.
However, when I double-tap the iPhone's home button to switch between apps, then the In-app browser opens as expected (in the view where I can see all open apps I see the browser open). If I navigate back to the app, the browser window now fills the screen as expected.
What am I doing wrong that's preventing this from opening without the app losing focus?
Found the solution - upgrading to the latest version of Cordova (currently 6.4.0) and creating a new app with that version seemed to resolve this.