{ "id": "79970", "key": "TIMOB-5199", "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": "2016-08-19T23:31:33.000+0000", "created": "2011-09-02T11:15:40.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "training" ], "versions": [ { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-23T22:35:09.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": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Steps to Reproduce:\r\n1. Create a new application \r\n2. add alert(Titanium.Platform.name) to the following code\r\n3. Run the application on iPhone simulator\r\n\r\nActual Result:\r\nSome machine returns \"Simulator\" and some return \"iPhone Simulator\"\r\n\r\nExpected Result:\r\nTo return the same value\r\n\r\nAdditional Information:\r\n- Community users seems to be doing the check against \"Simulator\"\r\n- Tested with xCode 4.0.2 and 4.2 and different SDK, did not make a difference, machines that return Simulator always returned Simulator and vice versa", "attachment": [], "flagged": false, "summary": "Some machines are returing \"Simulator\" and some are returning \"iPhone Simulator\" for Titanium.Platform.name", "creator": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac OSX 10.6.8 and 10.7 with 1.8.0.v20110828131421", "comment": { "comments": [ { "id": "393690", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "When running an app on the iOS Simulator, the platform name is not guaranteed to be the same. It's up to Apple whatever they want to display.\r\n\r\nFor iOS 10 simulator, the platform name is \"iPhone OS\".", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2016-08-19T23:31:33.000+0000", "updated": "2016-08-19T23:31:33.000+0000" }, { "id": "394296", "author": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "body": "When {{Titanium.Platform.name}} is used on an iOS 10 device it returns {{iOS}} as the {{Titanium.Platform.name}} instead of {{iPhone OS}}. This is due to apple as Chris said above.", "updateAuthor": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "created": "2016-08-24T21:32:24.000+0000", "updated": "2016-08-24T21:32:24.000+0000" }, { "id": "415461", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as Won't Fix with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-23T22:35:09.000+0000", "updated": "2017-03-23T22:35:09.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }