[TIMOB-26473] Ti.Platform.displayCaps incorrect for both Height & Width for both iPhone XR & XS Max
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Adam Armstrong |
Assignee | Eric Merriman |
Created | 2018-10-19T17:07:14.000+0000 |
Updated | 2018-12-05T22:56:36.000+0000 |
Description
I am on 7.4.0GA.
Running this code:
Ti.API.info("displayCaps-platform-H:" + Ti.Platform.displayCaps.platformHeight + ", W:" + Ti.Platform.displayCaps.platformWidth + ", " + Ti.Platform.displayCaps.density);
Returns this for these simulators (iOS 12.0):
iPhone X/XS: displayCaps-platform-H:812, W:375, xhigh
iPhone 7 Plus: displayCaps-platform-H:736, W:414, high
iPhone XR: displayCaps-platform-H:812, W:375, high
iPhone XS Max: displayCaps-platform-H:812, W:375, xhigh
I believe the XR & XS Max are both incorrect and should instead return:
iPhone XR: displayCaps-platform-H:896, W:414, high
iPhone XS Max: displayCaps-platform-H:896, W:414, xhigh
This issue is also present on 7.4.1GA
Interesting.... By simply adding the new splash screens for XR & XS Max, the Ti.Platform APIs are now reporting correctly. So, the API wont report correctly unless you have the splash screens added. Shouldn't the platformHeight & platformWidth report correctly regardless ?
I am on 7.4.1.GA and use launch files, and I am seeing the correct values for displayCaps on XS Max.
I found this out. I was on the newest SDK, but I hadn't added the new splash screens. When the splash screens were missing I got invalid dimensions. But once I added the missing/new splash screens - then the dimensions reported correctly. I would have thought the dimensions would be reported correctly whether all splash screens were present or not.....but maybe this is expected!? IDK. Adam.