I\'m using the cordova InAppBrowser to display content from an external site in my app. When I open the browser on an iPhone, there are some buttons at the bottom of the InA
Adding "location=yes"
to the end of your call will place an address bar and DONE button at the top of the window on Android. (It appears at the bottom of the window in iOS). Clicking Done closes the window.
var ref = window.open('http://apache.org', '_blank', 'location=yes');
Just came across a solution that may help achieve your needs better, and/or help other people.
In summary, you can create a 'dummy' HTML page, add JavaScript in your App to detect when that page is loaded, and when it is loaded, close the InAppBrowser.
See here: Phonegap build - Open external page in InAppBrowser or childbrowser with no toolbar and close it?