meta name=“viewport” content=“user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi”
My iPhone running iOS 7 has no problems with that meta tag, and displays my content properly. It doesn’t have issues with any variation of that tag, either.
My HTC Droid DNA running Kitkat (4.4.2) displays the content so small as to be unreadable. It stays that way for a couple seconds, then the content is displayed at the proper size for a couple more seconds, (as if I’d zoomed in), and then the content goes back to the original size (too small to be able to read).
It was Android that was having the problem, but the addition of EnableViewportScale worked… the content was displayed properly on both iOS and Android. It worked when I ran the app from the command line using “cordova run android” or “ionic run android”, and it also works when I debug the app from within the Intel XDK. It does NOT work when I test the app through Intel App Preview. Very odd.
Weird thing is, if I remove EnableViewportScale and run the app from the command line, it STILL works.
Arg. I can’t get the viewport to work using the Intel XDK unless I debug. I want to be able to test the app by launching it in Intel App Preview, but when I load the app that way, it doesn’t appear to be reading config.xml, and I tried creating intelxdk.config.additions.xml and putting EnableViewportScale there, but that doesn’t work either.
I’m just going to build from the command line and use HockeyApp to push the app to my devices… since I’m paying for a HockeyApp subscription anyhow, I ought to use it.