{ "id": "174899", "key": "TIMOB-27839", "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": [ { "id": "21018", "name": "Release 9.0.2", "archived": false, "released": true, "releaseDate": "2020-05-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2020-05-07T11:57:13.000+0000", "created": "2020-04-09T19:16:40.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "ios", "ipad" ], "versions": [], "issuelinks": [ { "id": "58354", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "174995", "key": "TIMOB-27886", "fields": { "summary": "iOS: Counter does not start of at 0 and different iOS versions return different results", "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": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-05-07T11:57:44.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": "When using Titanium SDK, 8.3.0, 8.3.1 or 9.0.0 Orientationchange will stop firing on iPadOS after a short time. Using the example code below you can open the app in the simulator or on device and rotate after a few rotations the event will stop firing, the label and console log will stop changing. Going home, and reopening the app often makes the issue happen right away. A screen recording of the issue can be found here: https://streamable.com/j7m95u\r\n\r\n{code:java}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'white',\r\n});\r\nvar label = Ti.UI.createLabel({\r\n text: 'Height: 0, Count: 0',\r\n textAlign: 'center'\r\n})\r\nvar rotateCount = 0;\r\nTi.Gesture.addEventListener('orientationchange', function (e) {\r\n console.log('Height: ' + Ti.Platform.displayCaps.platformHeight);\r\n rotateCount++;\r\n label.text = 'Height: ' + Ti.Platform.displayCaps.platformHeight + ', Count: ' + rotateCount;\r\n});\r\nwin.add(label);\r\nwin.open();\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Orientationchange Stops Firing on iPadOS", "creator": { "name": "dlewis23", "key": "dlewis23", "displayName": "Donovan Lewis", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dlewis23", "key": "dlewis23", "displayName": "Donovan Lewis", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK, 8.3.0, 8.3.1, 9.0.0. Xcode 11.3.1 and Xcode 11.4. iOS 13.4, iPadOS 13.4.", "closedSprints": [ { "id": 1192, "state": "closed", "name": "2020 Sprint 8", "startDate": "2020-04-10T18:08:36.092Z", "endDate": "2020-04-24T18:08:00.000Z", "completeDate": "2020-04-24T16:23:30.466Z", "originBoardId": 114 }, { "id": 1194, "state": "closed", "name": "2020 Sprint 9", "startDate": "2020-04-24T17:09:51.572Z", "endDate": "2020-05-08T17:09:00.000Z", "completeDate": "2020-05-08T15:40:07.869Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "455069", "author": { "name": "dlewis23", "key": "dlewis23", "displayName": "Donovan Lewis", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Someone noticed this issue many versions ago but didn't seem to create an issue here in Jira. https://stackoverflow.com/questions/58167424/titanium-orientationchange-event-does-not-fire\r\n\r\nSeemed to break after 8.1.0. ", "updateAuthor": { "name": "dlewis23", "key": "dlewis23", "displayName": "Donovan Lewis", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-04-09T23:10:26.000+0000", "updated": "2020-04-09T23:10:26.000+0000" }, { "id": "455109", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "\"location\" event of Ti.Geolocation is also not firing in iOS 13.x . In iOS < 13.0 it is working fine. See the test case - \r\n\r\n{code:java}\r\nvar win = Ti.UI.createWindow({ backgroundColor: 'white' });\r\n\r\nTi.Geolocation.accuracy = Ti.Geolocation.ACCURACY_HIGH;\r\n\r\nfunction getLocation() {\r\n Ti.Geolocation.addEventListener('location', function(e) {\r\n alert(JSON.stringify(e, null, 2));\r\n });\r\n}\r\n\r\nwin.addEventListener('open', function() {\r\n if (Ti.Geolocation.hasLocationPermissions()) {\r\n getLocation();\r\n } else {\r\n Ti.Geolocation.requestLocationPermissions(Ti.Geolocation.AUTHORIZATION_ALWAYS, function(e) {\r\n if (e.success) {\r\n getLocation();\r\n } else {\r\n alert('could not obtain location permissions');\r\n }\r\n });\r\n }\r\n});\r\n\r\nwin.open();\r\n{code}\r\n", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-04-13T22:19:37.000+0000", "updated": "2020-04-13T22:20:43.000+0000" }, { "id": "455125", "author": { "name": "dlewis23", "key": "dlewis23", "displayName": "Donovan Lewis", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thats a great one to be missing also. I had not noticed it but I will double check in my app as well. ", "updateAuthor": { "name": "dlewis23", "key": "dlewis23", "displayName": "Donovan Lewis", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-04-14T14:16:28.000+0000", "updated": "2020-04-14T14:16:28.000+0000" }, { "id": "455178", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR(master) - https://github.com/appcelerator/titanium_mobile/pull/11643\r\nPR (9_0_X) - https://github.com/appcelerator/titanium_mobile/pull/11648", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-04-17T18:56:44.000+0000", "updated": "2020-04-20T16:13:09.000+0000" }, { "id": "455380", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR passed, Waiting on Jenkins build for Master and 9_0_X. ", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-05-06T16:49:32.000+0000", "updated": "2020-05-06T16:49:32.000+0000" }, { "id": "455382", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master for 9.1.0 target and 9_0_X for 9.0.2 target", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2020-05-06T16:59:13.000+0000", "updated": "2020-05-06T16:59:13.000+0000" }, { "id": "455392", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-05-07T11:57:08.000+0000", "updated": "2020-05-07T11:57:08.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }