First, this is the viewport meta tag that I use in my apps:
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0"/>
Note the loss of "height=device-height" and your "target-densitydpi=device-dpi". You don't need either one (and the latter is deprecated). I also don't use "maximum-scale" -- if the viewport isn't scaleable, it really shouldn't matter. "minimum-scale=1.0" is there to hint to Chrome that it should use the GPU rasterizer (Android only).
Second, I took a look at your app listing in the iOS App Store. The iPhone screen captures look fine. But on the iPad captures, there's a lot of wasted space. That's... not great. Having your content sitting in the center of the screen in a narrow column (and failing to fill the height, even) doesn't make for a great experience, in my opinion. Instead, I'd suggest making a separate layout for wider screens such that the tank is on the left and the controls are on the right I've also updated the
example to include a media query that illustrates this. It renders as before on a narrow form factor, but switches to a two-column layout when we have a wider screen. (I'd also suggest going one step further: use a split view so that the menu is always present when a tablet is in landscape mode to further efficiently utilize space.)
Third, You'll want to consider adding the status bar plugin so that you can change the iOS status bar text to white. Having black on a dark blue doesn't look good.
Fourth, I took a look at your app listing in the Google Play store, and noticed that it looks like you're reserving space for the iOS status bar. You can use the status bar plugin to reserve that space instead, which would mean you wouldn't have to do so in your CSS. That would make your Android screen shots look better. (And you could follow the more recent trend of coloring the Android status bar a different shade, too.)
Fifth, don't assume that the PhoneGap Developer App is the same as running a build version (it isn't!). Always test an actual release build on your device before submitting to a store in order to catch out problems like these before going into production. Now, if your pre-Google Play APK works correctly, but your post-Google Play APK doesn't, well, then we're in odd territory, because the download source shouldn't matter. Speaking of which, what are you using to generate the APK? PhoneGap Build? Or are you building locally?
Sixth, It looks like you're targeting iOS 6+ and Android 4.0+. I suggest using Crosswalk for Android 4.0+ in order to save some of your hair (otherwise you'll be pulling it out), but it does come at a size increase of your APK. iOS didn't support modern flex-box until iOS 7, so you'd need a different layout for <7, if you insist upon supporting iOS 6. (Personally? Aim for Android 4.4+ and iOS 8+. But you may not necessarily have that option, of course.)
Hope that helps some.
On Monday, December 28, 2015 at 8:52:53 PM UTC-6, kazar54 wrote:
...