{ "id": "130631", "key": "TIMOB-16989", "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": "16270", "description": "2014 Sprint 10", "name": "2014 Sprint 10", "archived": true, "released": true, "releaseDate": "2014-05-22" }, { "id": "16271", "description": "2014 Sprint 10 SDK", "name": "2014 Sprint 10 SDK", "archived": true, "released": true, "releaseDate": "2014-05-22" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" }, { "id": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-05-21T22:47:47.000+0000", "created": "2014-05-19T20:26:56.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "analytics", "qe-3.3.0", "qe-closed-3.3.0", "qe-testadded", "regression" ], "versions": [ { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "issuelinks": [ { "id": "37715", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "130635", "key": "TISTUD-6516", "fields": { "summary": "Timeout waiting for uploading debug symbols ", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-05-23T20:52:35.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h5. To reproduce:\r\nrun\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: 'white'\r\n});\r\n\r\nvar label = Ti.UI.createLabel({\r\n\ttext:\"who is who \"+Ti.Analytics\r\n});\r\nwin.add(label);\r\nwin.open();\r\n{code}\r\n\r\nh5. Actual result\r\nTi.Analytics returns undefined\r\n\r\nh5. Expected result\r\nTi.Analytics Methods and Properties should work\r\n", "attachment": [], "flagged": false, "summary": "Analytics: Ti.Analytics return undefined", "creator": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Node.JS Version: v0.10.13\r\nNPM Version: 1.3.2\r\n├── acs@1.0.14\r\n├── alloy@1.4.0-alpha\r\n├── npm@1.3.2\r\n├── titanium@3.3.0-alpha2\r\n└── titanium-code-processor@1.1.1\r\nDevice:\r\niPhone 5S iOS 7.1.1", "closedSprints": [ { "id": 104, "state": "closed", "name": "2014 Sprint 10 SDK", "startDate": "2014-05-12T16:00:00.000Z", "endDate": "2014-05-24T00:00:00.000Z", "completeDate": "2014-05-27T18:11:47.424Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "305995", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{code}\r\nvar window = Ti.UI.createWindow({\r\n backgroundColor: 'white',\r\n layout: 'vertical'\r\n});\r\n\r\nvar b1 = Titanium.UI.createButton({\r\n title: 'Check Last Event ?',\r\n top: 10,\r\n width: Ti.UI.SIZE,\r\n height: 50\r\n});\r\n\r\nb1.addEventListener('click',function(e)\r\n{\r\n Ti.API.info(\"Checking lastEvent property\");\r\n Ti.API.info(\"Ti.Analytics.lastEvent :\" + Ti.Analytics.lastEvent + \"\\n\");\r\n Ti.API.info(\"Ti.Analytics.getLastEvent() :\" + Ti.Analytics.getLastEvent() + \"\\n\");\r\n alert(Ti.Analytics.getLastEvent());\r\n});\r\n\r\nwindow.add(b1);\r\n\r\nvar b2 = Titanium.UI.createButton({\r\n title: 'Send Nav Event',\r\n top: 10,\r\n width: Ti.UI.SIZE,\r\n height: 50\r\n});\r\n\r\nb2.addEventListener('click',function(e)\r\n{\r\n Ti.API.info(\"Sending Nav Event\");\r\n Ti.Analytics.navEvent('navEventOne', 'navEventTwo', 'navEvent.testButton');\r\n \r\n});\r\n\r\nwindow.add(b2);\r\nvar b3 = Titanium.UI.createButton({\r\n title: 'Send Feature Event',\r\n top: 10,\r\n width: Ti.UI.SIZE,\r\n height: 50\r\n});\r\n\r\nb3.addEventListener('click',function(e)\r\n{\r\n Ti.API.info(\"Sending Feature Event\");\r\n Ti.Analytics.featureEvent('featureEvent');\r\n \r\n});\r\n\r\nwindow.add(b3);\r\nwindow.open();\r\n\r\n{code}", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-21T22:16:08.000+0000", "updated": "2014-05-21T22:16:08.000+0000" }, { "id": "305996", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile/pull/5721", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-21T22:23:42.000+0000", "updated": "2014-05-21T22:23:42.000+0000" }, { "id": "306001", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile/pull/5724 3_3_X", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-21T22:46:35.000+0000", "updated": "2014-05-21T22:46:35.000+0000" }, { "id": "306314", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested the above code and verified the fix using\r\n Appcelerator Studio, build: 3.3.0.201405161313 \r\nTitanium SDK, build: 3.3.0.v20140523120121 \r\nNode.JS Version: v0.10.13 \r\nNPM Version: 1.3.2 \r\nacs@1.0.14 \r\nalloy@1.4.0-alpha4 \r\nnpm@1.3.2 \r\ntitanium@3.3.0-alpha5 \r\ntitanium-code-processor@1.1.1\r\nXcode 5.1.1\r\nDevice: iPhone 5C iOS 7.1\r\n{code}\r\n[INFO] : Checking lastEvent property\r\n[INFO] : Ti.Analytics.lastEvent :{\"mid\":\"9537F35C-F507-41C8-9FB1-E6CA7B4559B3\",\"id\":\"8DA9852C-4B3A-40A0-85A2-AE6CCFDB50DD\",\"ts\":\"2014-05-23T20:49:40.733+0000\",\"data\":{\"ostype\":\"32bit\",\"app_id\":\"com.appc.test\",\"oscpu\":2,\"tz\":-420,\"platform\":\"ios\",\"nettype\":\"WIFI\",\"os\":\"ios\",\"app_name\":\"test\",\"sdkver\":\"ti.3.3.0\",\"osarch\":\"armv7s\",\"deploytype\":\"test\",\"model\":\"iPhone5,3\",\"app_version\":\"1.0\",\"osver\":\"7.1\"},\"ver\":\"3\",\"sid\":\"97EA0A69-A549-4A24-9DB2-5224CACE5B13\",\"event\":\"ti.foreground\",\"aguid\":\"fa83c14f-1145-4b25-bf98-11e5569cdc9f\",\"seq\":4}\r\n[INFO] : Ti.Analytics.getLastEvent() :{\"mid\":\"9537F35C-F507-41C8-9FB1-E6CA7B4559B3\",\"id\":\"8DA9852C-4B3A-40A0-85A2-AE6CCFDB50DD\",\"ts\":\"2014-05-23T20:49:40.733+0000\",\"data\":{\"ostype\":\"32bit\",\"app_id\":\"com.appc.test\",\"oscpu\":2,\"tz\":-420,\"platform\":\"ios\",\"nettype\":\"WIFI\",\"os\":\"ios\",\"app_name\":\"test\",\"sdkver\":\"ti.3.3.0\",\"osarch\":\"armv7s\",\"deploytype\":\"test\",\"model\":\"iPhone5,3\",\"app_version\":\"1.0\",\"osver\":\"7.1\"},\"ver\":\"3\",\"sid\":\"97EA0A69-A549-4A24-9DB2-5224CACE5B13\",\"event\":\"ti.foreground\",\"aguid\":\"fa83c14f-1145-4b25-bf98-11e5569cdc9f\",\"seq\":4}\r\n[INFO] : Sending Nav Event\r\n[INFO] : Sending Feature Event\r\n{code}\r\n", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-23T20:50:59.000+0000", "updated": "2014-05-23T20:51:43.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }