Can't get proper pixel size of iOS devices
I'm testing an iOS app made in Animate CC on an iPhone 7 Plus.
Allegedly the (portrait) resolution is 1080x1920px
(according to this: Displays )
Everything works great when I test it inside Animate, no matter what I set the size to.
But testing on the phone, using stage.fullScreenHeight (/Width), it thinks the phone is 640x960. At least that's what it echos back when I ask in the app while testing.
I found other threads that suggested using Capabilities.screenResolutionX (/Y)
That yielded the exact same result.. 640x960.
Another thread said the launch images dictate the resolution, so I created all the required (portrait) launch images according to this: Launch Images on iOS with Adobe AIR I appended all the png images in the "AIR for iOS" Settings.
Interestingly, according to this, the 7 Plus is 1242x2208px
Why are two pages reporting different sizes? At least it's the same ratio.. Well, the code is meant to accommodate sizing on all devices so it shouldn't really matter but anyway...
The point is, sizing works beautiful testing within Animate. But I can't get it to work on devices, mainly the iPhone 7+ but I've also tested the iPhone X and two sizes of iPad and they all look pretty bad. Why isn't it picking up the launch image(s)? Why does it think the phone is 640x960???
