{ "id": "174120", "key": "TIMOB-27394", "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": "20884", "name": "Release 8.2.1", "archived": false, "released": true, "releaseDate": "2019-10-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-10-04T18:42:27.000+0000", "created": "2019-09-11T18:48:28.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "engSchedule" ], "versions": [], "issuelinks": [ { "id": "58851", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "175699", "key": "TIMOB-28224", "fields": { "summary": "Ti.UI.Shortcuts Test Suite: Titanium.UI.Shortcuts Acceptance TIMOB-27394", "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": "10100", "description": "This Issue Type is used to create Zephyr Test within Jira.", "name": "Test", "subtask": false } } } } ], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-11-04T03:48:18.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": "Currently, application shortcuts cannot handle SF Symbols and error out with \"Invalid icon provided, defaulting to use no icon\". The simple fix is to properly handle TiBlob input types and assign it with the new symbols method of UIApplicationShortcuts.", "attachment": [], "flagged": false, "summary": "iOS: Application Shortcuts cannot handle SF Symbols", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "451306", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "cc [~vijaysingh]", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-09-11T18:48:45.000+0000", "updated": "2019-09-11T18:48:45.000+0000" }, { "id": "451416", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR(master) - https://github.com/appcelerator/titanium_mobile/pull/11220\r\nPR(8_2_X) - https://github.com/appcelerator/titanium_mobile/pull/11222\r\n\r\nTest Case -\r\n\r\n{code:java}\r\nTi.App.iOS.addEventListener(\"shortcutitemclick\", function(e){\r\n Ti.API.info(\"shortcutitemclick Event Fired\");\r\n Ti.API.info(\"event payload:\" + JSON.stringify(e));\r\n});\r\nvar win = Titanium.UI.createWindow({\r\n title:'Test', backgroundColor:'#fff', layout:\"vertical\"\r\n});\r\nvar btn1 = Ti.UI.createButton({\r\n top: 50, height:45, title:\"Add System image (triangle) Application Shortcut\"\r\n});\r\nwin.add(btn1);\r\nbtn1.addEventListener(\"click\",function(){\r\n var image = Ti.UI.iOS.systemImage('drop.triangle.fill');\r\n var appShortcuts = Ti.UI.iOS.createApplicationShortcuts();\r\n appShortcuts.addDynamicShortcut({\r\n itemtype:\"system_image\",\r\n title:\"System Image\",\r\n subtitle:\"Tap to reach us\",\r\n icon: image,\r\n userInfo:{\r\n infoKey:\"system_image\"\r\n }\r\n });\r\n});\r\nvar btn2 = Ti.UI.createButton({\r\n top: 10, height:45, title:\"Remove System image (triangle) Application Shortcut\"\r\n});\r\nwin.add(btn2);\r\nbtn2.addEventListener(\"click\",function(){\r\n var appShortcuts = Ti.UI.iOS.createApplicationShortcuts();\r\n appShortcuts.removeDynamicShortcut(\"system_image\");\r\n});\r\n\r\nvar btn5 = Ti.UI.createButton({\r\n top: 10, height:45, title:\"Dynamic Shortcut Exists?\"\r\n});\r\nwin.add(btn5);\r\nbtn5.addEventListener(\"click\",function(){\r\n var appShortcuts = Ti.UI.iOS.createApplicationShortcuts();\r\n var exists = appShortcuts.dynamicShortcutExists(\"system_image\");\r\n var msg = (exists) ? \"Icon exists\" : \"Sorry isn't there\";\r\n alert(msg);\r\n});\r\nvar btn6 = Ti.UI.createButton({\r\n top: 10, height:45, title:\"Remove All Dynamic Shortcuts\"\r\n});\r\nwin.add(btn6);\r\nbtn6.addEventListener(\"click\",function(){\r\n var appShortcuts = Ti.UI.iOS.createApplicationShortcuts();\r\n appShortcuts.removeAllDynamicShortcuts();\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": "2019-09-16T22:16:06.000+0000", "updated": "2019-09-16T22:24:22.000+0000" }, { "id": "451617", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed. An image blob is shown as part fo the app shortcut. Also no error is shown when adding the shortcut.", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-09-24T23:18:52.000+0000", "updated": "2019-09-24T23:18:52.000+0000" }, { "id": "451863", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified On:\r\nMac OS: 10.14.5\r\nSDK: 8.2.1.v20191003075717, 8.3.0.v20191003144543\r\nAppc CLI: 7.1.1\r\nJDK: 1.8.0_162\r\nNode: 10.5.0\r\nStudio: 5.1.4.201909061933\r\nXcode: 11.0\r\nDevice: iPhone X(13.0)", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-10-04T18:42:27.000+0000", "updated": "2019-10-04T18:42:27.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }