{ "id": "109796", "key": "TIMOB-12789", "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": null, "resolutiondate": null, "created": "2013-02-15T22:26:42.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "Gesture", "bug", "event", "ios", "orientation" ], "versions": [ { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "issuelinks": [ { "id": "25948", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "100519", "key": "TIMOB-10788", "fields": { "summary": "TiAPI: Ti.UI.Window 'orientationchange' event", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": null, "updated": "2018-02-28T20:03:28.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "*Actual behavior*\r\nThe orientationchange event sometimes fires on app startup. \r\neg: I run app in simulator 5 times (via titanium build), it fires 3 of those times. \r\n\r\n*Expected behavior*\r\nIt shouldn't fire at all on app startup. It should only fire on an orientationchange event.\r\n\r\n*Test case*\r\n{code:javascript}\r\nTi.Gesture.addEventListener('orientationchange', function(e) {\r\n if(Ti.Gesture.isLandscape()) {\r\n Ti.API.warn('orientationchange ---> landscape');\r\n } else {\r\n Ti.API.warn('orientationchange ---> portrait');\r\n }\r\n});\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: orientationchange event sometimes fires on app startup", "creator": { "name": "meeech", "key": "meeech", "displayName": "Mitchell Amihod", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "meeech", "key": "meeech", "displayName": "Mitchell Amihod", "active": true, "timeZone": "America/New_York" }, "environment": "TiSDK 3.0.2.v20130207164659", "comment": { "comments": [ { "id": "238946", "author": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It seems like there are a number of issues reported related to orientationchange events. (Try searching for \"orientationchange\" in the summary.) If we can't fix the API as it exists, because we're just reporting the raw accelerometer events, can we prioritize Blain's new proposed API for UI orientation events as described in TIMOB-10788? ", "updateAuthor": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-19T22:01:51.000+0000", "updated": "2013-02-19T22:02:58.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }