Cordova 3.3 InAppBrowser _blank vs _self Problems

There are a number of oddities about working with InAppBrowser in Cordova 3.3 viewport scaling which may pose varying levels of annoyance across iOS and Android. In particular, there are several important differences between using _self and _blank.

Beware _self vs. _blank Differences

Opening a browser window using the target “_self’ looks like this:

this.windowRef ='', '_self');

This will load an external site in the current browser window. The viewport scaling and configuration settings for a browser window opened this way will come from you config.xml and from the index.html.

If you ever decide to use the “_blank” target (which opens a browser in a modal dialog) like this:

this.windowRef ='', '_blank', 'location=yes,toolbar=yes,EnableViewportScale=yes,DisallowOverscroll=yes');

None of the browser scaling settings in your Config.xml or index.html are going to apply. As in the example above, you will have to force feed them through into the plugin as I am doing in the example.