{ "id": "174048", "key": "AC-6342", "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": "2019-09-26T22:51:49.000+0000", "created": "2019-08-22T17:58:32.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2019-09-26T22:51:50.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": [], "description": "Hi,\r\n\r\nI'm having some issues saving an item to the clipboard (string). Please see below for the code Im using (taken directly from https://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Clipboard) and the errors Im receiving.\r\n\r\nIm firing the code with a click event on a label.\r\n\r\nI understand I am not using a GA version of the Ti SDK, but it's necessary as this version solved some issues that 8.1.0 does not solve. Im not having any other issues, otherwise.\r\n\r\nThanks!\r\n\r\n\r\n{code:java}\r\nTi.UI.Clipboard.setItems({\r\n\titems: [{\r\n\t\t\"text/plain\": \"John\",\r\n\t},{\r\n\t\t\"text/plain\": \"Doe\"\r\n\t}]\r\n});\r\n\r\nLOG(Ti.UI.Clipboard.getItems())\r\n\r\n[ERROR] Script Error {\r\n[ERROR] column = 22;\r\n[ERROR] line = 205;\r\n[ERROR] message = \"undefined is not an object (evaluating 'Ti.UI.Clipboard.setItems')\";\r\n[ERROR] stack = \" at )\";\r\n[ERROR] toJSON = \"\";\r\n[ERROR] }\r\n\r\nvar clipboard = Ti.UI.createClipboard({\r\n\tunique : true\r\n});\r\nclipboard.setText('hello');\r\nTi.API.info('clipboard name is: ' + clipboard.name);\r\nTi.API.info('clipboard.getText() ' + clipboard.getText());\r\n\r\n[ERROR] Script Error {\r\n[ERROR] column = 44;\r\n[ERROR] line = 205;\r\n[ERROR] message = \"invalid method (createClipboard) passed to UIModule\";\r\n[ERROR] nativeStack = \"3 CoreFoundation 0x0000000227012414 + 148\\n4 CoreFoundation 0x0000000226eee5b8 + 324\\n5 TitaniumKit0x00000001065f09b8 -[KrollMethod call:] + 664\\n6 TitaniumKit0x00000001065efdc8 __KrollCallAsFunction_block_invoke + 36\\n7 TitaniumKit0x00000001065efbc4 KrollCallAsFunction + 424\\n8 JavaScriptCore 0x000000022e5397a4 + 360\\n9 JavaScriptCore 0x000000022eb28ea4 + 436\\n10 JavaScriptCore 0x000000022e50ce30 + 88064\\n11 JavaScriptCore 0x000000022e4f73a4 + 276\\n12 JavaScriptCore 0x000000022ea4900c + 424\\n13 JavaScriptCore 0x000000022ec49a14 _ZN3JSC12profiledCallEPNS_9ExecStateENS_15ProfilingReasonENS_7JSValueENS_8CallTypeERKNS_8CallDataES3_RKNS_7ArgListE + 196\\n14 JavaScriptCore 0x000000022e53ffe4 JSObjectCallAsFunction + 384\\n15 TitaniumKit0x00000001065cdd8c TiBindingEventProcess + 680\\n16 TitaniumKit0x00000001065edd14 -[KrollContext invoke:] + 116\\n17 TitaniumKit0x00000001065edd84 -[KrollContext enqueue:] + 92\\n18 TitaniumKit0x00000001065f588c TiBindingRunLoopEnqueue + 92\\n19 TitaniumKit0x00000001065f40d0 -[TiProxy fireEvent:withObject:propagate:reportSuccess:errorCode:message:] + 168\\n20 TitaniumKit0x00000001065d5788 -[TiViewProxy fireEvent:withObject:propagate:reportSuccess:errorCode:message:] + 240\\n21 TitaniumKit0x00000001065c6520 -[TiUIView touchesEnded:withEvent:] + 116\\n22 UIKitCore 0x000000025403bd58 + 7972\";\r\n[ERROR] stack = \" at [native code]\\n at )\";\r\n[ERROR] toJSON = \"\";\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Issue saving to clipboard", "creator": { "name": "capsizeno4", "key": "capsizeno4", "displayName": "eric harms", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "capsizeno4", "key": "capsizeno4", "displayName": "eric harms", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "IOS\r\nTI SDK 8.1.1.v20190813101121", "comment": { "comments": [ { "id": "451205", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hello,\r\nThanks for sharing with is. Can you please test this issue on 8.1.1.GA and let us know the results?", "updateAuthor": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-09-09T10:12:59.000+0000", "updated": "2019-09-09T10:12:59.000+0000" }, { "id": "451530", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello [~capsizeno4], I can't validate your issue in SDK 8.1.1.GA. Ti.UI.createClipboard does work. Use the latest SDK. Can you share a full sample code or in your case a demo of the issue in a video. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2019-09-20T15:46:52.000+0000", "updated": "2019-09-20T15:46:52.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }