{ "id": "172554", "key": "TIMOB-26518", "fields": { "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "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": "19882", "name": "Release 8.0.0", "archived": false, "released": true, "releaseDate": "2019-03-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-11-06T18:00:38.000+0000", "created": "2018-11-05T12:40:30.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "20275", "name": "Release 7.4.1", "archived": false, "released": true, "releaseDate": "2018-10-18" } ], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-11-16T11:59:48.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Hi team,\r\nFor Android Platform, I have added \"evenlistener\" in webview local html file. The event is fired from app.js. The issue is, fireEvent get fired in reverse order for Android.\r\nFor iOS, the sequence is right and for Android, the sequence is wrong.\r\n\r\nApp.js\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\r\n});\r\n\r\nvar webView = Ti.UI.createWebView({\r\n\tvisible : false,\r\n\turl : 'index.html'\r\n\r\n});\r\n\r\nwin.add(webView);\r\nwebView = null;\r\n\r\nwin.open();\r\n\r\nsetTimeout(function() {\r\n\r\n\tfor (var i = 0; i < 5; i++) {\r\n\t\tvar data = {\r\n\t\t\tvalue : i\r\n\t\t};\r\n\r\n\t\tTi.API.info(\"value passed:\" + i);\r\n\t\tTi.App.fireEvent('testevent', data);\r\n\t}\r\n}, 5000);\r\n{code}\r\nindex.html\r\n{code:html}\r\n\r\n\r\n\t\r\n\r\n\t\r\n\t\r\n\r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\n\r\nLog for adroid:\r\n{code}\r\n[INFO] : value passed:0\r\n[INFO] : value passed:1\r\n[INFO] : value passed:2\r\n[INFO] : value passed:3\r\n[INFO] : value passed:4\r\n[WARN] : TiVerify: (Timer-0) [4992,4993] Verifying module licenses...\r\n[INFO] : I/System.out: Thread-63102(ApacheHTTPLog):Reading from variable values from setDefaultValuesToVariables\r\n[INFO] : I/System.out: Thread-63102(ApacheHTTPLog):isSBSettingEnabled false\r\n[INFO] : I/System.out: Thread-63102(ApacheHTTPLog):isShipBuild true\r\n[INFO] : I/System.out: Thread-63102(ApacheHTTPLog):getDebugLevel 0x4f4c\r\n[INFO] : I/System.out: Thread-63102(ApacheHTTPLog):Smart Bonding Setting is false\r\n[INFO] : I/System.out: Thread-63102(ApacheHTTPLog):SmartBonding Setting is false, SHIP_BUILD is true, log to file is false, DBG is false, DEBUG_LEVEL (1-LOW, 2-MID, 3-HIGH) is 1\r\n[INFO] : I/System.out: Timer-0 calls detatch()\r\n[INFO] : TiVerify: (Timer-0) [838,5831] Succesfully verified module licenses\r\n[INFO] : testevent:4\r\n[INFO] : testevent:3\r\n[INFO] : testevent:2\r\n[INFO] : testevent:1\r\n[INFO] : testevent:0\r\n{code}\r\n\r\nTest Environment:\r\n{code}\r\nOperating System\r\n Name = Microsoft Windows 10 Pro\r\n Version = 10.0.17134\r\n Architecture = 32bit\r\n # CPUs = 4\r\n Memory = 17091956736\r\nNode.js\r\n Node.js Version = 8.9.1\r\n npm Version = 5.5.1\r\nTitanium CLI\r\n CLI Version = 5.1.1\r\nTitanium SDK\r\n SDK Version = 7.4.1.GA\r\n{code}", "attachment": [ { "id": "65806", "filename": "androidlogs.png", "author": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "created": "2018-11-05T12:41:00.000+0000", "size": 12668, "mimeType": "image/png" }, { "id": "65807", "filename": "ioslogs.png", "author": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "created": "2018-11-05T12:41:00.000+0000", "size": 13278, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Webview FireEvent not get fired in correct sequence", "creator": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "subtasks": [], "reporter": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "environment": "Operating System\r\n Name = Microsoft Windows 10 Pro\r\n Version = 10.0.17134\r\n Architecture = 32bit\r\n # CPUs = 4\r\n Memory = 17091956736\r\nNode.js\r\n Node.js Version = 8.9.1\r\n npm Version = 5.5.1\r\nTitanium CLI\r\n CLI Version = 5.1.1\r\nTitanium SDK\r\n SDK Version = 7.4.1.GA", "closedSprints": [ { "id": 1093, "state": "closed", "name": "2018 Sprint 23", "startDate": "2018-11-04T23:35:52.006Z", "endDate": "2018-11-18T23:35:00.000Z", "completeDate": "2018-11-19T05:30:34.338Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "443307", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/10422", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-11-05T21:50:57.000+0000", "updated": "2018-11-05T21:50:57.000+0000" }, { "id": "443687", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket*. Fix verified in SDK Version {{8.0.0.v20181114074027}} Webview FireEvent now gets fired in correct sequence.\r\n\r\n*Test steps (FR passed):*\r\n# Created a new titanium project \r\n# Added the test case from https://github.com/appcelerator/titanium_mobile/pull/10422\r\n# Ran the program\r\n# Following output was seen (Correct sequence):\r\n{code:java}\r\n[INFO] : value passed:0\r\n[INFO] : value passed:1\r\n[INFO] : value passed:2\r\n[INFO] : value passed:3\r\n[INFO] : value passed:4\r\n[INFO] : TiVerify: (Timer-0) [5000,5000] Verifying module licenses...\r\n[INFO] : testevent:0\r\n[INFO] : testevent:1\r\n[INFO] : testevent:2\r\n[INFO] : testevent:3\r\n[INFO] : testevent:4\r\n{code}\r\n\r\n*Test Environment* \r\n{code:java}\r\nAPPC Studio: 5.1.1.201809051655\r\nNexus 5X 7.1 (Sim)\r\nAPPC CLI: 7.0.8-5\r\nOperating System Name: Mac OS Mojave\r\nOperating System Version: 10.14.1\r\nNode.js Version: 8.9.1\r\nXcode 10.1\r\n{code}\r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-11-16T11:59:37.000+0000", "updated": "2018-11-16T11:59:37.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }