{ "id": "114751", "key": "TIMOB-13952", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "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": "11258", "description": "Holding Pen for Triaged Issues", "name": "Backlog", "archived": false, "released": false } ], "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": "2014-02-19T19:21:48.000+0000", "created": "2013-05-22T10:28:20.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "qe-3.1.1" ], "versions": [ { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-27T20:41:37.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": "Android: analytics timedEvent does not fire.\n\nThis is not a regression. Issue occurs since 2.1.4.GA\n\nSteps to reproduce:\n1. Run the app.\n{code}\nTitanium.UI.setBackgroundColor('#fff');\n\n// create tab group\nvar win = Ti.UI.createWindow({\nlayout: 'vertical'\n});\n\nvar startDate = new Date();\n\n//Testing the Ti.Analytics.featureEvent\nvar testOneButton = Ti.UI.createButton({\ntitle: \"featureEvent\",\nheight: 50,\nwidth: 250,\ntop: 20\n});\ntestOneButton.addEventListener('click', function(e){\nTi.Analytics.featureEvent('featureEvent.testButton');\n});\n\n//Testing the Ti.Analytics.navEvent\nvar testTwoButton = Ti.UI.createButton({\ntitle: \"navEvent\",\nheight: 50,\nwidth: 250,\ntop: 20\n});\ntestTwoButton.addEventListener('click', function(e){\nTi.Analytics.navEvent('here', 'there', 'navEvent.testButton');\n});\n\n//Testing the Ti.Analytics.settingsEvent\nvar testThreeButton = Ti.UI.createButton({\ntitle: \"settingsEvent\",\nheight: 50,\nwidth: 250,\ntop: 20\n});\ntestThreeButton.addEventListener('click', function(e){\nTi.Analytics.settingsEvent('settingsEvent.testButton');\n});\n\n\n//Testing the Ti.Analytics.timedEvent\nvar testFourButton = Ti.UI.createButton({\ntitle: \"timedEvent\",\nheight: 50,\nwidth: 250,\ntop: 20\n});\ntestFourButton.addEventListener('click', function(e){\n\tvar stopDate = new Date();\n\tvar duration = stopDate - startDate;\n\tTi.Analytics.timedEvent('timedEvent.testButton',startDate, stopDate, duration);\n});\n\n\n//Testing the Ti.Analytics.userEvent\nvar testFiveButton = Ti.UI.createButton({\ntitle: \"userEvent\",\nheight: 50,\nwidth: 250,\ntop: 20\n});\ntestFiveButton.addEventListener('click', function(e){\nTi.Analytics.userEvent('userEvent.testButton');\n});\n\nwin.add(testOneButton);\nwin.add(testTwoButton);\nwin.add(testThreeButton);\nwin.add(testFourButton);\nwin.add(testFiveButton);\nwin.open();\n\n{code}\n2. Press the timedEvent button \n3. Check logs\n4. Quit application check logs\n\nExpected:\nAfter Step 3: nothing is logged\nAfter Step4: \"event\":\"timedEvent.testButton\",\"data\":{\"start\":\"\",\"data\":[],\"event\":\"timedEvent.testButton\",\"stop\":\"\",\"duration\":\"\"},\"\n\nActual :\nno logs appear.\n\n", "attachment": [], "flagged": false, "summary": "Android: analytics timedEvent does not fire", "creator": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "Device : Google Nexus 7, Android Version: 4.1\r\nSDK: 3.1.1.v20130521153706\r\nCLI version : 3.1.0\r\nOS : MAC OSX 10.7.5\r\nAppcelerator Studio, build: 3.1.2.201305212422\r\nXCode : 4.5.1", "comment": { "comments": [ { "id": "253402", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Android: analytics userEvent also doesnot fired up.\nThis is not a regression. Issue occurs since 2.1.4.GA\n\nTested on:\nDevice : Google Nexus 7, Android Version: 4.1\nSDK: 3.1.1.v20130521153706\nCLI version : 3.1.0\nOS : MAC OSX 10.7.5\nAppcelerator Studio, build: 3.1.2.201305212422\nXCode : 4.5.1\n ", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-05-22T10:33:20.000+0000", "updated": "2013-05-22T10:33:20.000+0000" }, { "id": "293798", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Marking as cannot reproduce. Tried this on 3.2.1.GA Galaxy Nexus 4.X.\r\n\r\nI was able to get both the userEvent, and timedEvent.", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-19T19:21:48.000+0000", "updated": "2014-02-19T19:21:48.000+0000" }, { "id": "415927", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as I am unable to reproduce this issue with the following environment;\r\nPixel (7.1)\r\nMacOS 10.11.6 (15G31)\r\nStudio 4.8.1.201612050850\r\nTi SDK 6.0.3 GA\r\nAppc NPM 4.2.8\r\nAppc CLI 6.1.0\r\nTi CLI 5.0.11\r\nAlloy 1.9.5\r\nArrow 1.10.1\r\nXcode 8.2 (8C38)\r\nNode v4.6.0\r\nJava 1.7.0_80", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-27T20:41:37.000+0000", "updated": "2017-03-27T20:41:37.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }