Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26473] Ti.Platform.displayCaps incorrect for both Height & Width for both iPhone XR & XS Max

GitHub Issuen/a
TypeBug
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterAdam Armstrong
AssigneeEric Merriman
Created2018-10-19T17:07:14.000+0000
Updated2018-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

Comments

  1. Adam Armstrong 2018-10-22

    This issue is also present on 7.4.1GA
  2. Adam Armstrong 2018-10-22

    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 ?
  3. Emily Feder 2018-12-05

    I am on 7.4.1.GA and use launch files, and I am seeing the correct values for displayCaps on XS Max.
  4. Adam Armstrong 2018-12-05

    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.
  5. Emily Feder 2018-12-05

JSON Source