Project: titanium
Issue TIMOB-17718: iOS8: Ti.Platform.displayCaps.density - requires new value for iPhone 6+ specifically
When running the latest Ti SDK 3.4 16th Sep the app now starts up and correctly reports the display caps. The density value is "high" for the @2x devices; iPhone 4, iPhone 4s, iPhone 5, iPhone 5s & iPhone 6 - which is correct. However the iPhone 6+ which is a @3x should gain a new value for the density property to help distinguish it from the other devices. The dpi does change, but as that could be different for different families of iDevices it cannot be used without also checking other values to confirm - which will get ever more complicated. Android devices report back a different value for all of their densities, I think @3x on an iDevice should also be distinct from @1x & @2x devices. All other values appear correct, quick tests from the top three devices; iPhone 6+ Ti.Platform.displayCaps.density: high Ti.Platform.displayCaps.dpi: 480 Ti.Platform.displayCaps.platformHeight: 736 Ti.Platform.displayCaps.platformWidth: 414 Ti.Platform.model: Simulator Ti.Platform.name: iPhone OS Ti.Platform.osname: iphone Ti.Platform.ostype: 32bit iPhone 6 Ti.Platform.displayCaps.density: high Ti.Platform.displayCaps.dpi: 320 Ti.Platform.displayCaps.platformHeight: 667 Ti.Platform.displayCaps.platformWidth: 375 Ti.Platform.model: Simulator Ti.Platform.name: iPhone OS Ti.Platform.osname: iphone Ti.Platform.ostype: 32bit iPhone 5 Ti.Platform.displayCaps.density: high Ti.Platform.displayCaps.dpi: 320 Ti.Platform.displayCaps.platformHeight: 568 Ti.Platform.displayCaps.platformWidth: 320 Ti.Platform.model: Simulator Ti.Platform.name: iPhone OS Ti.Platform.osname: iphone Ti.Platform.ostype: 32bit
Story points: 5