{ "id": "76208", "key": "TIMOB-5547", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2011-06-10T05:38:32.000+0000", "created": "2011-06-10T04:17:37.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "mnegadaylov", "key": "mnegadaylov", "displayName": "Maxim Negadaylov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-10T18:53:53.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [], "description": "Property Ti.Platform.model returns null on iPhone. It have to return the model of the phone.\r\n{code:JavaScript}\r\nvar win = Titanium.UI.currentWindow;\r\nwin.backgroundColor = '#EEE';\r\n\r\nvar show = Ti.UI.createButton({\r\n\ttitle: 'Show',\r\n\tleft: 90,\r\n\ttop: 10,\r\n\twidth: 140,\r\n\theight: 45,\r\n\tfontSize: 20\r\n});\r\n\r\nvar close = Ti.UI.createButton({\r\n\ttitle: 'Close',\r\n\tleft: 90,\r\n\ttop: 60,\r\n\twidth: 140,\r\n\theight: 45,\r\n\tfontSize: 20\r\n});\r\n\r\nvar ta = Ti.UI.createTextArea({\r\n\ttop: 110,\r\n\tleft: 10,\r\n\twidth: 300,\r\n\theight: 180,\r\n\tbackgroundColor: 'white',\r\n\tfontSize: 18\r\n});\r\n\r\nwin.add(show);\r\nwin.add(close);\r\nwin.add(ta);\r\n\r\nclose.addEventListener('click', function(){\r\n\tTitanium.UI.currentWindow.close();\r\n});\r\n\r\nshow.addEventListener('click',function(){\r\n\tta.value = 'Operation system: ' + Ti.Platform.osname + '\\r\\n';\r\n\tta.value = ta.value + 'OS type: ' + Ti.Platform.ostype + '\\r\\n';\r\n\tta.value = ta.value + 'Platform name: ' + Ti.Platform.name + '\\r\\n';\r\n\tta.value = ta.value + 'Window height: ' + Ti.Platform.displayCaps.platformHeight + '\\r\\n';\r\n\tta.value = ta.value + 'Window width: ' + Ti.Platform.displayCaps.platformWidth + '\\r\\n';\r\n\tta.value = ta.value + 'Platform model: ' + Ti.Platform.model + '\\r\\n';\r\n\r\n});\r\n{code}", "attachment": [], "flagged": false, "summary": "MobileWeb: Ti.Platform.model returns null", "creator": { "name": "mvasko", "key": "mvasko", "displayName": "Misha Vasko", "active": true, "timeZone": "Europe/Kiev" }, "subtasks": [], "reporter": { "name": "mvasko", "key": "mvasko", "displayName": "Misha Vasko", "active": true, "timeZone": "Europe/Kiev" }, "environment": null, "comment": { "comments": [ { "id": "156429", "author": { "name": "akulinich", "key": "akulinich", "displayName": "Andrew Kulinich", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We can't know phone model in a browser", "updateAuthor": { "name": "akulinich", "key": "akulinich", "displayName": "Andrew Kulinich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-10T05:38:32.000+0000", "updated": "2011-06-10T05:38:32.000+0000" }, { "id": "411265", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue will not fix.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-10T18:53:53.000+0000", "updated": "2017-03-10T18:53:53.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }