Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5426] Update Ti.Platform.model to report iOS device details

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-01-05T17:43:09.000+0000
Affected Version/sRelease 1.7.2
Fix Version/sSprint 2011-40, Release 1.7.3, Release 1.8.0
ComponentsiOS
Labelsmodule_platform, qe-testadded
ReporterBlain Hamon
AssigneeBlain Hamon
Created2011-10-04T13:35:39.000+0000
Updated2014-06-19T12:46:35.000+0000

Description

For models iPod, iPad2, iPod 2G, iPhone 3G, 3GS, and 4 (AT&T), leave the model name the same for backwards compatibility. However, iOS does expose a model number in the form of [model][major],[minor], such as iPod1,1 for first gen that is more descriptive. For future-proofing, we should relay on this value instead of needing to rewrite platform.model for each hardware release.

Comments

  1. Michael Pettiford 2011-12-08

    Tested on Ti Studio 1.0.7.201112080131 
Ti Mob SDK 1.8.0.1.v20111207180431 
OSX Lion iPhone 4S OS 5.0.1 Expected behavior of platform.id is shown
  2. Michael Pettiford 2012-01-05

    Closing/reopening to add/remove labels

JSON Source