[AC-5999] Shortcut 7.5.0.RC
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Needs more info |
Resolution Date | 2019-01-02T21:21:55.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | IOS, android |
Reporter | Andreas Pingas |
Assignee | Shak Hossain |
Created | 2018-10-30T16:23:24.000+0000 |
Updated | 2019-01-02T21:21:56.000+0000 |
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!
When the app launches from the icon and later from Shortcut , shortcutitemclick is doubled fired.
When the app launches from Shortcut then shortcutitemclick is fired 3 times instead of 1.
It sometime has the following error whilst the Shortcuts arent more than 2.
[ERROR] : TiExceptionHandler: (main) [52,570] /src/modules/application_shortcuts.js:122
[ERROR] : TiExceptionHandler: shortcutItem.show();
[ERROR] : TiExceptionHandler: ^
[ERROR] : TiExceptionHandler: Error: Max number of dynamic shortcuts exceeded
[ERROR] : TiExceptionHandler: at Object.exports.createApplicationShortcuts (/src/modules/application_shortcuts.js:122:10)
[ERROR] : TiExceptionHandler: at /app.js:463:70
[ERROR] : TiExceptionHandler: at Module._runScript (ti:/module.js:613:9)
[ERROR] : TiExceptionHandler: at Module.load (ti:/module.js:105:7)
[ERROR] : TiExceptionHandler: at Module.loadJavascriptText (ti:/module.js:457:9)
[ERROR] : TiExceptionHandler: at Module.loadAsFile (ti:/module.js:512:15)
[ERROR] : TiExceptionHandler: at Module.loadAsFileOrDirectory (ti:/module.js:429:20)
[ERROR] : TiExceptionHandler: at Module.require (ti:/module.js:256:17)
[ERROR] : TiExceptionHandler: at require (ti:/module.js:570:15)
[ERROR] : TiExceptionHandler: at /ti.main.js:27:3
[ERROR] : TiExceptionHandler:
[ERROR] : TiExceptionHandler: android.os.Parcel.readException(Parcel.java:1946)
[ERROR] : TiExceptionHandler: android.os.Parcel.readException(Parcel.java:1888)
[ERROR] : TiExceptionHandler: android.content.pm.IShortcutService$Stub$Proxy.setDynamicShortcuts(IShortcutService.java:419)
[ERROR] : TiExceptionHandler: android.content.pm.ShortcutManager.setDynamicShortcuts(ShortcutManager.java:622)
[ERROR] : TiExceptionHandler: ti.modules.titanium.ui.ShortcutItemProxy.show(ShortcutItemProxy.java:127)
[ERROR] : TiExceptionHandler: org.appcelerator.kroll.runtime.v8.V8Runtime.nativeRunModule(Native Method)
[ERROR] : TiExceptionHandler: org.appcelerator.kroll.runtime.v8.V8Runtime.doRunModule(V8Runtime.java:180)
[ERROR] : TiExceptionHandler: org.appcelerator.kroll.KrollRuntime.runModule(KrollRuntime.java:247)
[ERROR] : TiExceptionHandler: org.appcelerator.titanium.TiLaunchActivity.loadActivityScript(TiLaunchActivity.java:135)
[ERROR] : TiExceptionHandler: org.appcelerator.titanium.TiLaunchActivity.windowCreated(TiLaunchActivity.java:190)
[ERROR] : V8Exception: Exception occurred at /src/modules/application_shortcuts.js:122: Uncaught Error: Max number of dynamic shortcuts exceeded
At iOS devices does not work at all. Please find the example below:
[WARN] : Attempted to load TiUIShortcutItemProxy: Could not find class definition.
[ERROR] : Script Error {
[ERROR] : column = 36;
[ERROR] : line = 3;
[ERROR] : message = "invalid method (createShortcutItem) passed to UIModule";
[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";
[ERROR] : sourceURL = "";
[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)";
[ERROR] : toJSON = "<KrollCallback: 0x600001686fc0>";
[ERROR] : }
[ERROR] : Script Error Module "app.js" failed to leave a valid exports object
var shortcutItem1 = Ti.UI.createShortcutItem({
id:'id1',
title:'Test 1'
});
shortcutItem1.hide();
var shortcutItem2 = Ti.UI.createShortcutItem({
id:'id2',
title:'Test 2'
});
shortcutItem2.show();
Ti.App.addEventListener('shortcutitemclick', function(e) {
Ti.API.info('shortcutitemclick');
});
Hi [~andreas.pingas], Can you please verify the issue on latest ti sdk 7.5.0.GA and let us know how it goes. Thanks!
All that seems to have been corrected: "It sometime has the following error whilst the Shortcuts arent more than 2."
[~andreas.pingas], Thanks for your feedback. Are you still experiencing this problem? Please let us know if you need more help with this issue.
Hello, We 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. Thanks