I'm using PhoneGap 2.3 and now when I open a new URL with 'window.open', my URL opens in the inAppBrowser.
In this browser, my viewport metatag is not working but when I put my URL in a safari browser the viewport is working fine.
In PhoneGap, I have set to 'yes' for 'enableViewportScale' but it doesn't work.
Somebody have a solution?
Thanks
enableViewportScale was added in 2.4.0 so you should just need to upgrade.
http://docs.phonegap.com/en/2.4.0/cordova_inappbrowser_inappbrowser.md.html#InAppBrowser
(under window.open)
EDIT:
Also, the way to call the options is one singular string, not an object:
So it should look like this:
'location=no,enableViewportScale=yes'
Kevin is right
window.open('http://apache.org', '_blank', 'location=no,EnableViewPortScale=yes');
(ok on iOS only)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With