Titanium JIRA Archive
Appcelerator Community (AC)

[AC-6270] Cannot detect iPhone XR device, but works on simulator

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNot Our Bug
Resolution Date2019-06-06T08:54:33.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterBrian Knorr
AssigneeRene Pot
Created2019-05-29T21:42:41.000+0000
Updated2019-06-06T08:54:33.000+0000

Description

We use the ti.detect code found here https://github.com/Topener/ti.detect/blob/master/ti.detect.js to determine if an iOS device has a notch so we can space things accordingly at the top of the screen. This works great across all simulators including the iPhone XR. But on an actual XR device it's not working. We have received many complaints about this from our iPhone XR users. Something in the Titanium framework is probably failing since it works fine in the XR simulator but not on device. Unfortunately we don't own an iPhone XR so we cannot debug it :) We think it must have something to do with the Ti.Platform.displayCaps not being set correctly on an XR device.

Comments

  1. Rene Pot 2019-06-06

    Hi! Closing the ticket here as this is a ti.detect shortcoming as the xr resolution is different and not handled there yet. Here's the related ti.detect issue: https://github.com/Topener/ti.detect/issues/2

JSON Source