{ "id": "151936", "key": "TIMOB-19710", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": "14826", "description": "Release 5.1.0-remaining iOS9 features, Android M features", "name": "Release 5.1.0", "archived": false, "released": true, "releaseDate": "2015-11-20" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-10-13T20:58:52.000+0000", "created": "2015-10-11T17:50:29.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "14826", "description": "Release 5.1.0-remaining iOS9 features, Android M features", "name": "Release 5.1.0", "archived": false, "released": true, "releaseDate": "2015-11-20" } ], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2015-10-20T23:22:06.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": "Would it make sense to use the same keys in {{Ti.UI.iOS.ApplicationShortcuts.listStaticShortcuts()}} as in {{listDynamicShortcuts()}}?\r\n\r\n{code}\r\n[INFO] Ti.UI.iOS.ApplicationShortcuts.listStaticShortcuts [\r\n[INFO] {\r\n[INFO] \"UIApplicationShortcutItemIconType\": \"UIApplicationShortcutIconTypeAdd\",\r\n[INFO] \"UIApplicationShortcutItemType\": \"NewPhoto\",\r\n[INFO] \"UIApplicationShortcutItemTitle\": \"Take photo\",\r\n[INFO] \"UIApplicationShortcutItemUserInfo\": {\r\n[INFO] \"myCustomKey\": \"myCustomValue\"\r\n[INFO] },\r\n[INFO] \"UIApplicationShortcutItemSubtitle\": \"Take a brand new photo\"\r\n[INFO] }\r\n[INFO] ]\r\n[INFO] Ti.UI.iOS.ApplicationShortcuts.listDynamicShortcuts [\r\n[INFO] {\r\n[INFO] \"title\": \"Open last picture\",\r\n[INFO] \"type\": \"details\",\r\n[INFO] \"subtitle\": \"2015-10-11T17:15:07+02:00\",\r\n[INFO] \"userInfo\": {\r\n[INFO] \"filename\": \"D48297EA-8F88-447F-8CDC-48980BEA4EFD.jpg\"\r\n[INFO] }\r\n[INFO] }\r\n[INFO] ]\r\n{code}", "attachment": [], "flagged": false, "summary": "Use same keys in Ti.UI.iOS.ApplicationShortcuts.listStaticShortcuts() as in listDynamicShortcuts()", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "SDK 5.1.0.v20151009094506", "comment": { "comments": [ { "id": "366598", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Tested this using https://github.com/appcelerator-developer-relations/appc-sample-3dtouch and both have the same keys now, but also both are missing the {{icon}} key.\r\n\r\n{code}\r\n[INFO] Ti.UI.iOS.ApplicationShortcuts.listDynamicShortcuts [\r\n[INFO] {\r\n[INFO] \"title\": \"Open last picture\",\r\n[INFO] \"itemtype\": \"details\",\r\n[INFO] \"subtitle\": \"2015-10-11T20:10:42+02:00\",\r\n[INFO] \"userInfo\": {\r\n[INFO] \"filename\": \"35E96E30-D820-4C91-900D-DF4E7D4AFED3.jpg\"\r\n[INFO] }\r\n[INFO] }\r\n[INFO] ]\r\n[INFO] Ti.UI.iOS.ApplicationShortcuts.listStaticShortcuts [\r\n[INFO] {\r\n[INFO] \"title\": \"Take photo\",\r\n[INFO] \"itemtype\": \"NewPhoto\",\r\n[INFO] \"subtitle\": \"Take a brand new photo\",\r\n[INFO] \"userInfo\": {\r\n[INFO] \"myCustomKey\": \"myCustomValue\"\r\n[INFO] }\r\n[INFO] }\r\n[INFO] ]\r\n{code}", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-10-13T06:57:54.000+0000", "updated": "2015-10-13T06:57:54.000+0000" }, { "id": "366695", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/7290\r\nPR (5_1_X): https://github.com/appcelerator/titanium_mobile/pull/7298", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-10-13T20:48:35.000+0000", "updated": "2015-10-13T20:48:35.000+0000" }, { "id": "367350", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "Verified as fixed, StaticShortcuts & DynamicShortcuts both follow the same format:\r\n\r\nStatic Shortcut: \r\n{code:java}\r\n[INFO] : event payload:{\"title\":\"New Message\",\"itemtype\":\"com.mycompany.myapp.newmessage\",\"subtitle\":\"\",\"userInfo\":{\"key2\":\"value2\"},\"bubbles\":true,\"type\":\"shortcutitemclick\",\"source\":{},\"cancelBubble\":false}\r\n{code}\r\n\r\nDynamic Shortcut:\r\n{code:java}\r\n[INFO] : event payload:{\"title\":\"Contact Us\",\"itemtype\":\"contact_us\",\"subtitle\":\"Tap to reach us\",\"userInfo\":{\"infoKey\":\"contact_us\"},\"bubbles\":true,\"type\":\"shortcutitemclick\",\"source\":{},\"cancelBubble\":false}\r\n{code}\r\n\r\nTested on iOS 9 Device.\r\n\r\nMac OSX El Capitan 10.11 (15A284)\r\nStudio: 4.3.3.201510201834\r\nTi SDK: 5.2.0.v20151020100425\r\nAppc NPM: 4.2.1-5\r\nAppc CLI: 5.2.0-18\r\nTi CLI: 5.0.4\r\nXcode 7.0(7A218)\r\nNode v4.2.1\r\nproduction\r\n\r\n*Closing ticket.*", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2015-10-20T23:21:54.000+0000", "updated": "2015-10-20T23:21:54.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }