{ "id": "172519", "key": "AC-5999", "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": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2019-01-02T21:21:55.000+0000", "created": "2018-10-30T16:23:24.000+0000", "labels": [ "IOS", "android" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2019-01-02T21:21:56.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 launches from Shortcut and later a user uses a Shortcut again, it launches but the shortcutitemclick of Ti.App.addEventListener is not fired!\r\n\r\nWhen the app launches from the icon and later from Shortcut , shortcutitemclick is doubled fired.\r\n\r\nWhen the app launches from Shortcut then shortcutitemclick is fired 3 times instead of 1.\r\n\r\nIt sometime has the following error whilst the Shortcuts arent more than 2.\r\n\r\n{code:java}\r\n[ERROR] : TiExceptionHandler: (main) [52,570] /src/modules/application_shortcuts.js:122\r\n[ERROR] : TiExceptionHandler: \t\tshortcutItem.show();\r\n[ERROR] : TiExceptionHandler: ^\r\n[ERROR] : TiExceptionHandler: Error: Max number of dynamic shortcuts exceeded\r\n[ERROR] : TiExceptionHandler: at Object.exports.createApplicationShortcuts (/src/modules/application_shortcuts.js:122:10)\r\n[ERROR] : TiExceptionHandler: at /app.js:463:70\r\n[ERROR] : TiExceptionHandler: at Module._runScript (ti:/module.js:613:9)\r\n[ERROR] : TiExceptionHandler: at Module.load (ti:/module.js:105:7)\r\n[ERROR] : TiExceptionHandler: at Module.loadJavascriptText (ti:/module.js:457:9)\r\n[ERROR] : TiExceptionHandler: at Module.loadAsFile (ti:/module.js:512:15)\r\n[ERROR] : TiExceptionHandler: at Module.loadAsFileOrDirectory (ti:/module.js:429:20)\r\n[ERROR] : TiExceptionHandler: at Module.require (ti:/module.js:256:17)\r\n[ERROR] : TiExceptionHandler: at require (ti:/module.js:570:15)\r\n[ERROR] : TiExceptionHandler: at /ti.main.js:27:3\r\n[ERROR] : TiExceptionHandler:\r\n[ERROR] : TiExceptionHandler: android.os.Parcel.readException(Parcel.java:1946)\r\n[ERROR] : TiExceptionHandler: android.os.Parcel.readException(Parcel.java:1888)\r\n[ERROR] : TiExceptionHandler: android.content.pm.IShortcutService$Stub$Proxy.setDynamicShortcuts(IShortcutService.java:419)\r\n[ERROR] : TiExceptionHandler: android.content.pm.ShortcutManager.setDynamicShortcuts(ShortcutManager.java:622)\r\n[ERROR] : TiExceptionHandler: ti.modules.titanium.ui.ShortcutItemProxy.show(ShortcutItemProxy.java:127)\r\n[ERROR] : TiExceptionHandler: org.appcelerator.kroll.runtime.v8.V8Runtime.nativeRunModule(Native Method)\r\n[ERROR] : TiExceptionHandler: org.appcelerator.kroll.runtime.v8.V8Runtime.doRunModule(V8Runtime.java:180)\r\n[ERROR] : TiExceptionHandler: org.appcelerator.kroll.KrollRuntime.runModule(KrollRuntime.java:247)\r\n[ERROR] : TiExceptionHandler: org.appcelerator.titanium.TiLaunchActivity.loadActivityScript(TiLaunchActivity.java:135)\r\n[ERROR] : TiExceptionHandler: org.appcelerator.titanium.TiLaunchActivity.windowCreated(TiLaunchActivity.java:190)\r\n[ERROR] : V8Exception: Exception occurred at /src/modules/application_shortcuts.js:122: Uncaught Error: Max number of dynamic shortcuts exceeded\r\n{code}\r\n\r\nAt iOS devices does not work at all. Please find the example below:\r\n\r\n{code:java}\r\n[WARN] : Attempted to load TiUIShortcutItemProxy: Could not find class definition.\r\n[ERROR] : Script Error {\r\n[ERROR] : column = 36;\r\n[ERROR] : line = 3;\r\n[ERROR] : message = \"invalid method (createShortcutItem) passed to UIModule\";\r\n[ERROR] : nativeStack = \"3 CoreFoundation 0x00000001132ea11c __invoking___ + 140\\n4 CoreFoundation 0x00000001132e75b5 -[NSInvocation invoke] + 325\\n5 0x000000010bd3d4fc -[KrollMethod call:] + 748\\n6 0x000000010bd3c2c2 __KrollCallAsFunction_block_invoke + 50\\n7 0x000000010be4e56e TiThreadPerformOnMainThread + 78\\n8 0x000000010bd3bf70 KrollCallAsFunction + 704\\n9 JavaScriptCore 0x000000010c6601a3 _ZN3JSC16JSCallbackObjectINS_20JSDestructibleObjectEE4callEPNS_9ExecStateE + 515\\n10 JavaScriptCore 0x000000010cbee011 _ZN3JSC5LLInt9setUpCallEPNS_9ExecStateEPNS_11InstructionENS_22CodeSpecializationKindENS_7JSValueEPNS_17LLIntCallLinkInfoE + 385\\n11 JavaScriptCore 0x000000010c62d025 llint_entry + 26699\\n12 JavaScriptCore 0x000000010c62d033 llint_entry + 26713\\n13 JavaScriptCore 0x000000010c626665 vmEntryToJavaScript + 235\\n14 JavaScriptCore 0x000000010cb20c2a _ZN3JSC11Interpreter14executeProgramERKNS_10SourceCodeEPNS_9ExecStateEPNS_8JSObjectE + 11178\\n15 JavaScriptCore 0x000000010cd4c62d _ZN3JSC8evaluateEPNS_9ExecStateERKNS_10SourceCodeENS_7JSValueERN3WTF8NakedPtrINS_9ExceptionEEE + 285\\n16 JavaScriptCore 0x000000010c657cd3 JSEvaluateScript + 467\\n17 0x000000010bd36f67 -[KrollEval jsInvokeInContext:exception:] + 263\\n18 0x000000010bd328b9 -[KrollBridge loadCommonJSModule:withSourceURL:] + 409\\n19 0x000000010bd33802 -[KrollBridge loadJavascriptText:fromFile:withContext:] + 98\";\r\n[ERROR] : sourceURL = \"\";\r\n[ERROR] : stack = \" at [native code]\\n at (/app.js:3:36)\\n at global code(/app.js:26:70)\\n at require@[native code]\\n at (/ti.main.js:27:10)\\n at loadAsync(/ti.internal/bootstrap.loader.js:106:11)\\n at global code(/ti.main.js:24:52)\";\r\n[ERROR] : toJSON = \"\";\r\n[ERROR] : }\r\n[ERROR] : Script Error Module \"app.js\" failed to leave a valid exports object\r\n{code}\r\n\r\n\r\n\r\n{code:java}\r\nvar shortcutItem1 = Ti.UI.createShortcutItem({\r\n id:'id1',\r\n title:'Test 1'\r\n});\r\n\r\nshortcutItem1.hide();\r\n\r\nvar shortcutItem2 = Ti.UI.createShortcutItem({\r\n id:'id2',\r\n title:'Test 2'\r\n});\r\n\r\nshortcutItem2.show();\r\n\r\nTi.App.addEventListener('shortcutitemclick', function(e) {\r\n\t\r\n\tTi.API.info('shortcutitemclick');\r\n\t\r\n});\r\n{code}\r\n\r\n", "attachment": [], "flagged": false, "summary": "Shortcut 7.5.0.RC", "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.5.0.RC", "comment": { "comments": [ { "id": "444104", "author": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hi [~andreas.pingas], \r\nCan you please verify the issue on latest ti sdk 7.5.0.GA and let us know how it goes.\r\n\r\nThanks!", "updateAuthor": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2018-11-30T16:04:28.000+0000", "updated": "2018-11-30T16:04:28.000+0000" }, { "id": "444342", "author": { "name": "andreas.pingas", "key": "andreas.pingas", "displayName": "Andreas Pingas", "active": true, "timeZone": "America/Los_Angeles" }, "body": "All that seems to have been corrected:\r\n\"It sometime has the following error whilst the Shortcuts arent more than 2.\"", "updateAuthor": { "name": "andreas.pingas", "key": "andreas.pingas", "displayName": "Andreas Pingas", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-12-08T12:28:15.000+0000", "updated": "2018-12-08T12:28:15.000+0000" }, { "id": "444387", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~andreas.pingas],\r\n\r\nThanks for your feedback. Are you still experiencing this problem?\r\nPlease let us know if you need more help with this issue.", "updateAuthor": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-12-10T08:57:03.000+0000", "updated": "2018-12-10T08:57:03.000+0000" }, { "id": "444904", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hello,\r\nWe haven't heard back from you since our last response. Are you able to get that sorted out? Just following up to check the status of this case and if you need further help on it.\r\nThanks", "updateAuthor": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-01-02T05:21:20.000+0000", "updated": "2019-01-02T05:21:20.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }