{ "id": "172059", "key": "AC-5836", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2018-08-14T12:43:59.000+0000", "created": "2018-08-14T10:40:43.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-08-23T21:57:43.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "When the app is set on run on main thread for IOS it stops and restars without any errors appearing.\r\n\r\n1) when the app runs and the user selects an App Shortcut\r\n\r\n2) when the app runs and you close and re-open it, it opens and instantly stops running and restarts automatically", "attachment": [], "flagged": false, "summary": "When the app is set on run on main thread for IOS it stops and restars without any errors appearing.", "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": null, "comment": { "comments": [ { "id": "440747", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Please add a reproducible test-case for both cases. For 2) it is a known iOS bug (not only for Titanium apps) when an app is quit and reopened quickly afterwards.\r\n\r\nAnd for the first issue, I cannot reproduce it with the following code:\r\n{code:js}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#ccc'\r\n});\r\n\r\nTi.App.iOS.addEventListener('shortcutitemclick', function (e) {\r\n label.text = 'Shortcut icon clicked, with title = ' + e.title;\r\n});\r\n\r\nvar label = Ti.UI.createLabel({\r\n text: ''\r\n});\r\n\r\nwin.add(label);\r\nwin.open();\r\n{code}\r\nShortcuts-items:\r\n{code:xml}\r\n\t UIApplicationShortcutItems\r\n \r\n \r\n UIApplicationShortcutItemIconType\r\n UIApplicationShortcutIconTypeAdd\r\n UIApplicationShortcutItemTitle\r\n TestTitle\r\n UIApplicationShortcutItemType\r\n TestCategory\r\n UIApplicationShortcutItemUserInfo\r\n \r\n \r\n \r\n{code}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-08-14T12:37:29.000+0000", "updated": "2018-08-14T12:44:10.000+0000" }, { "id": "441029", "author": { "name": "andreas.pingas", "key": "andreas.pingas", "displayName": "Andreas Pingas", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Please check out the following:\r\n\r\n{code:java}\t\t\t\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) {\r\n\t\t\t\r\n\t\t\tTi.API.info('shortcutitemclick');\r\n\t\t\t\r\n\t\t\tlabel.text = 'Shortcut icon clicked, with title = ' + e.title;\r\n\t\t\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\n1) Open the app from shortcut\r\n2) Take the app to run on background\r\n3) Open the app from shortcut again\r\n\r\nThe app terminates instantly", "updateAuthor": { "name": "andreas.pingas", "key": "andreas.pingas", "displayName": "Andreas Pingas", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-23T21:57:43.000+0000", "updated": "2018-08-23T21:57:43.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }