Solution: Viewport meta tag being ignored in PhoneGap iOS

22nd May 2013

Another common PhoneGap issue I came across with no up to date instructions how to solve (seems to be for older versions of PhoneGap) is the viewport meta tag being ignored. It is actually a very easy fix. Here is how to do it in the most recent version of PhoneGap for iOS at the time of writing (2.7.0).

In your Xcode project click on “config.xml”, find the tag that says “<preference name=”EnableViewportScale” value=”false” />”, change the value to true “<preference name=”EnableViewportScale” value=”true” />”, save and you’re done.

I told you it was easy, shame it’s not well documented.

Categories: PhoneGap

Tags: iOS, PhoneGap


« Back

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


Warning: Parameter 1 to wp_default_scripts() expected to be a reference, value given in /home/jasonsto/thewebdevelopmentblog.com/public_html/wp-includes/plugin.php on line 571