[AC-6270] Cannot detect iPhone XR device, but works on simulator
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Not Our Bug |
Resolution Date | 2019-06-06T08:54:33.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | n/a |
Reporter | Brian Knorr |
Assignee | Rene Pot |
Created | 2019-05-29T21:42:41.000+0000 |
Updated | 2019-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.
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