{ "id": "172149", "key": "TIMOB-26344", "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": "20183", "description": "", "name": "Release 7.4.0", "archived": false, "released": true, "releaseDate": "2018-09-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-09-20T10:36:39.000+0000", "created": "2018-08-29T22:27:24.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "crash", "ios", "shortcuts" ], "versions": [ { "id": "20115", "name": "Release 7.3.0", "archived": false, "released": true, "releaseDate": "2018-08-17" }, { "id": "20220", "name": "Release 7.3.1", "archived": false, "released": true, "releaseDate": "2018-08-30" } ], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2018-09-20T10:37:03.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": "Please check out the following:\r\n\r\n{code:java}\r\nvar windowA = Ti.UI.createWindow();\r\nvar windowB = Ti.UI.createWindow();\r\n\r\nvar tabA = Ti.UI.createTab({\r\n\twindow:windowA,\r\n\ttitle:'Tab A'\r\n});\r\n\r\nvar tabB = Ti.UI.createTab({\r\n\twindow:windowB,\r\n\ttitle:'Tab B'\r\n});\r\n\t\r\nvar tabGroup = Titanium.UI.createTabGroup({\r\n\ttabs:[tabA, tabB]\r\n});\r\n\r\ntabGroup.open();\r\n\r\nvar label = Ti.UI.createLabel({\r\n text: ''\r\n});\r\n\r\nwindowA.add(label);\r\n\r\nif (Ti.UI.iOS.forceTouchSupported) {\r\n\t\t\r\n\t\tTi.App.iOS.addEventListener('shortcutitemclick', function(e) {\t\r\n\t\t\tTi.API.info('shortcutitemclick');\r\n\t\t\tlabel.text = 'Shortcut icon clicked, with title = ' + e.title;\t\r\n\t\t});\r\n\t\t\r\n\t\tvar appShortcuts = Ti.UI.iOS.createApplicationShortcuts();\r\n\t\t\r\n\t\tappShortcuts.removeAllDynamicShortcuts();\r\n\t\t\r\n\t\tappShortcuts.addDynamicShortcut({\r\n\t\t itemtype:'itemt_a',\r\n\t\t title:'Itemt A',\r\n\t\t icon:Titanium.UI.iOS.SHORTCUT_ICON_TYPE_MESSAGE\r\n\t\t});\r\n\r\n\t\tappShortcuts.addDynamicShortcut({\r\n\t\t itemtype:'itemt_b',\r\n\t\t title:'Itemt B',\r\n\t\t icon:Titanium.UI.iOS.SHORTCUT_ICON_TYPE_ADD\r\n\t\t});\r\n\t\t\t\r\n\t}\r\n{code}\r\n\r\n\r\n1) Open the app from shortcut
\r\n2) Take the app to run on background\r\n
3) Open the app from shortcut again\r\nThe app terminates instantly", "attachment": [], "flagged": false, "summary": "iOS: Applications Shortcuts crash on SDK 7.3.0+ when triggered from background", "creator": { "name": "andreas.pingas", "key": "andreas.pingas", "displayName": "Andreas Pingas", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "andreas.pingas", "key": "andreas.pingas", "displayName": "Andreas Pingas", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK 7.3.1.RC, Appcelerator Studio 5.1.0", "closedSprints": [ { "id": 1070, "state": "closed", "name": "2018 Sprint 18 SDK", "startDate": "2018-08-26T16:14:35.297Z", "endDate": "2018-09-09T16:14:00.000Z", "completeDate": "2018-09-11T20:59:21.495Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "441220", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hello,\r\n\r\nThanks for sharing this. Are you experiencing this on device? Have you seen any crash logs during your app termination? If yes, please share the logs here.", "updateAuthor": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-08-30T06:04:25.000+0000", "updated": "2018-08-30T06:04:25.000+0000" }, { "id": "441223", "author": { "name": "andreas.pingas", "key": "andreas.pingas", "displayName": "Andreas Pingas", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I test it on TestFlight for iPhone 6s on iOS 11.4.1", "updateAuthor": { "name": "andreas.pingas", "key": "andreas.pingas", "displayName": "Andreas Pingas", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-30T07:09:50.000+0000", "updated": "2018-08-30T07:09:50.000+0000" }, { "id": "441224", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "This looks like a valid issue! We refactored big parts of the {{UIApplicationDelegate}} handling in 7.3.0 and this may be a side-effect of doing it. Fixing today, patching for the next release (likely 7.3.2 as 7.3.1 will be released today already and finished QE-testing by now). \r\n\r\n*EDIT*: I am able to reproduce it and it indeed is triggered by the queued application delegates from cold boots. ", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-08-30T07:41:14.000+0000", "updated": "2018-08-30T07:46:19.000+0000" }, { "id": "441246", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/10296\r\nPR (7_4_X): https://github.com/appcelerator/titanium_mobile/pull/10297\r\nPR (7_3_X): https://github.com/appcelerator/titanium_mobile/pull/10298\r\n\r\nTest-Case: See above!\r\n\r\n[~andreas.pingas] You can patch the change today and go for it!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-08-30T18:08:50.000+0000", "updated": "2018-08-30T18:13:02.000+0000" }, { "id": "441395", "author": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix on 7.4.0.v20180906093302 and 7.5.0.v20180906093938. No Crashing occurs. Closing.\r\n{code}\r\nOperating system\r\nName = Mac OS X\r\n Version = 10.13.6\r\nNode.js\r\n Node.js Version = 8.9.1\r\n npm Version = 5.5.1\r\nTitanium CLI\r\n CLI Version = 5.1.1\r\n{code}", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-09-06T20:56:07.000+0000", "updated": "2018-09-13T17:54:42.000+0000" }, { "id": "441539", "author": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~amukherjee], the fix is not in 7.3.1 GA version.", "updateAuthor": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-09-13T17:28:33.000+0000", "updated": "2018-09-13T17:28:33.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }