{ "id": "152913", "key": "TIMOB-19923", "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": "14826", "description": "Release 5.1.0-remaining iOS9 features, Android M features", "name": "Release 5.1.0", "archived": false, "released": true, "releaseDate": "2015-11-20" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2015-11-13T03:35:22.000+0000", "created": "2015-11-12T01:16:46.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-5.1.0" ], "versions": [ { "id": "14826", "description": "Release 5.1.0-remaining iOS9 features, Android M features", "name": "Release 5.1.0", "archived": false, "released": true, "releaseDate": "2015-11-20" } ], "issuelinks": [], "assignee": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2015-11-16T18:57:49.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": "Unsure if this is a regression as last time analytics was run was SDK 4.0.0.GA.\r\n\r\nh5.Steps To Reproduce:\r\n1. Use the attached app.js.\r\n2. Build for android device.\r\n3. Follow the guide here & see the sent events: https://wiki.appcelerator.org/display/qe/Guide+to+Running+Titanium+Analytics+Locally\r\n4. The app will launch for the first time & you will see enroll & foreground events.\r\n5. Check if you see ti.geo event.\r\n\r\nh5.Actual Result:\r\n1. We do not see the ti.geo event.\r\n\r\nh5.Expected Result:\r\n1. We should see the ti.geo event.", "attachment": [ { "id": "57371", "filename": "app.js", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-11-12T01:15:31.000+0000", "size": 5065, "mimeType": "text/javascript" } ], "flagged": false, "summary": "Android: Ti.geo events are not seen after app install", "creator": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Environment:\r\nAppc Studio : 4.4.0.201511101919\r\nTi SDK : 5.1.0.v20151110202023\r\nTi CLI : 5.0.5\r\nAlloy : 1.7.24\r\nMAC Yosemite : 10.10.5\r\nAppc NPM : 4.2.1\r\nAppc CLI : 5.1.0-50\r\nNode: v0.10.37\r\nNexus 6 - Android 6.0\r\nNexus 5 - Android 5.1.1", "comment": { "comments": [ { "id": "370170", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "[~lchoudhary] Ran your code on 3.5.1.GA through 5.1.0.v20151110202023. Behaviour of SDK for Ti.Geo events remain the same and working.\r\n\r\nIssue seems to be with the test code at Line 5 to line 40 with the `if (Ti.Platform.osname == 'ipad' || Ti.Platform.osname == 'iphone') {` portion. The closing brackets of the condition for `iOS` ends after the Ti.Geo code. Hence, Ti.Geo code will never run on Android. When the bracket is moved from line 40 to line 14. It works as expected.\r\n\r\nTi.Geo event can be seen from localserver nodejs script. Resolving this issue as invalid.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-11-13T03:35:12.000+0000", "updated": "2015-11-13T03:42:03.000+0000" }, { "id": "370419", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified by changing the code. We see geo events.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-11-16T18:57:32.000+0000", "updated": "2015-11-16T18:57:44.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }