[TIMOB-5426] Update Ti.Platform.model to report iOS device details
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-01-05T17:43:09.000+0000 |
Affected Version/s | Release 1.7.2 |
Fix Version/s | Sprint 2011-40, Release 1.7.3, Release 1.8.0 |
Components | iOS |
Labels | module_platform, qe-testadded |
Reporter | Blain Hamon |
Assignee | Blain Hamon |
Created | 2011-10-04T13:35:39.000+0000 |
Updated | 2014-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.
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
Closing/reopening to add/remove labels