{ "id": "99466", "key": "TIMOB-10503", "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": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14098", "description": "Sprint 2012-18 API", "name": "Sprint 2012-18 API", "archived": true, "released": true, "releaseDate": "2012-09-10" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-09-04T15:38:43.000+0000", "created": "2012-08-20T15:21:06.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "20615", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "100458", "key": "TIMOB-10773", "fields": { "summary": "iOS: Only send ti.geo analytics event once when user sets a ti.geolocation callback", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-06T22:38:16.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": "Currently, when user sets ti.geolocation, ti.geo analytics events are sent for every callback. We only care about one lat/long pair, and it's wasteful to send all ti.geo info.\r\n\r\nTesting steps: \r\n1. Launch a simple app with this code in production (Package in iOS/Android App store)\r\n{code}\r\nTi.Geolocation.addEventListener('location', function(e) {\r\n});\r\n{code}\r\n2. Drive around a little bit to trigger location change (home -> work. etc.)\r\n3. Put app's name and GUID in this ticket so we can look up analytics events that was fired.", "attachment": [], "flagged": false, "summary": "Android: Only send ti.geo analytics event once when user sets a ti.geolocation callback", "creator": { "name": "cliu", "key": "cliu", "displayName": "Chung Liu", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "cliu", "key": "cliu", "displayName": "Chung Liu", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "215340", "author": { "name": "cliu", "key": "cliu", "displayName": "Chung Liu", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Neeraj -- Yes, don't send repeated ti.geo analytics events every time the location changes. Just send one single ti.geo analytics event (so we can establish the country/city of the session). We don't need to automatically track the movements of the user through analytics. If the app needs to record the movements of the user, it can send its own data by making explicit calls.\r\n\r\nCurrently we have sessions with thousands of ti.geo events that are counted against an app's analytics quota, don't add any value, and use up a device's battery and data plan.\r\n\r\n", "updateAuthor": { "name": "cliu", "key": "cliu", "displayName": "Chung Liu", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-21T09:57:34.000+0000", "updated": "2012-08-21T09:57:34.000+0000" }, { "id": "217068", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Test case is missing.", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-30T15:05:34.000+0000", "updated": "2012-08-30T15:05:34.000+0000" }, { "id": "217477", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "body": "Test case started, drove to nearby location and back with app running.\r\nID: com.appcelerator.timob10503\r\nGUID: b35574ca-868d-43f9-8201-beace15b7f10\r\n\r\n", "updateAuthor": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2012-09-04T12:38:16.000+0000", "updated": "2012-09-04T12:38:16.000+0000" }, { "id": "217523", "author": { "name": "cliu", "key": "cliu", "displayName": "Chung Liu", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Looks good. For some reason the IP address is an Orlando FL address, but the GPS coordinates are Allen TX. Looks like only one ti.geo was sent at the start of the session.\r\n\r\nHere's the actual analytics data that was sent:\r\n\r\n10.250.50.160-12.json.txt:{\"id\":\"c64890d9-14c2-4b15-b6c7-c7a3eaeea353:8a8d4496fe53e764\",\"sid\":\"4284f1bb-fa09-4d7f-af6c-a0b4945be9dc\",\"ts\":\"2012-09-04T19:08:17.682+0000\",\"event\":\"ti.enroll\",\"data\":{\"platform\":\"android\",\"osarch\":\"ARMv7 Processor rev 10 (v7l)\",\"model\":\"Galaxy Nexus\",\"mac_addr\":\"a0:0b:ba:e7:56:96\",\"previous_mid\":\"\",\"oscpu\":2,\"ostype\":\"32bit\",\"deploytype\":\"test\",\"app_id\":\"com.appcelerator.timob10503\",\"app_name\":\"timob10503\"},\"seq\":1,\"mid\":\"8a8d4496fe53e764\",\"ver\":\"2\",\"type\":\"ti.enroll\",\"aguid\":\"b35574ca-868d-43f9-8201-beace15b7f10\"}\r\n10.250.50.160-12.json.txt:{\"city\":\"Orlando\",\"region_code\":\"FL\",\"country_code\":\"US\",\"country_name\":\"United States\",\"postal_code\":\"\",\"latitude\":28.538299560547,\"longitude\":-81.379203796387,\"area_code\":407,\"continent_code\":\"NA\",\"ip_address\":\"208.54.86.253\",\"region_name\":\"Florida\",\"id\":\"05e5d48c-7685-47d4-8176-c0d23b6c0103:8a8d4496fe53e764\",\"sid\":\"4284f1bb-fa09-4d7f-af6c-a0b4945be9dc\",\"ts\":\"2012-09-04T19:08:17.768+0000\",\"event\":\"ti.start\",\"data\":{\"platform\":\"android\",\"os\":\"Android\",\"model\":\"Galaxy Nexus\",\"tz\":-360,\"nettype\":\"MOBILE\",\"deploytype\":\"test\",\"app_version\":\"1.0\",\"osver\":\"4.1.1\",\"un\":\"android-build\",\"version\":\"2.2.0\"},\"seq\":2,\"mid\":\"8a8d4496fe53e764\",\"ver\":\"2\",\"type\":\"ti.start\",\"aguid\":\"b35574ca-868d-43f9-8201-beace15b7f10\"}\r\n10.250.50.160-12.json.txt:{\"id\":\"8dffe736-72fd-4a52-878c-e7074a00f3aa:8a8d4496fe53e764\",\"sid\":\"4284f1bb-fa09-4d7f-af6c-a0b4945be9dc\",\"ts\":\"2012-09-04T19:08:17.925+0000\",\"event\":\"ti.geo\",\"data\":{\"to\":{\"timestamp\":1346780580945,\"longitude\":-96.7026004,\"latitude\":33.0936855,\"accuracy\":1316,\"speed\":0,\"altitude\":0,\"heading\":0}},\"seq\":3,\"mid\":\"8a8d4496fe53e764\",\"ver\":\"2\",\"type\":\"ti.geo\",\"aguid\":\"b35574ca-868d-43f9-8201-beace15b7f10\"}\r\n10.250.50.160-12.json.txt:{\"id\":\"8c85e8c7-787b-4736-8f57-327ed3c744a8:8a8d4496fe53e764\",\"sid\":\"4284f1bb-fa09-4d7f-af6c-a0b4945be9dc\",\"ts\":\"2012-09-04T19:22:29.917+0000\",\"event\":\"ti.end\",\"data\":{\"value\":\"\"},\"seq\":4,\"mid\":\"8a8d4496fe53e764\",\"ver\":\"2\",\"type\":\"ti.end\",\"aguid\":\"b35574ca-868d-43f9-8201-beace15b7f10\"}\r\n\r\n\r\n{\"results\":[{\"locations\":[{\"latLng\":{\"lng\":-96.7026,\"lat\":33.093685},\"adminArea4\":\"Collin\",\"adminArea5Type\":\"City\",\"adminArea4Type\":\"County\",\"adminArea5\":\"Allen\",\"street\":\"S Alma Dr\",\"adminArea1\":\"US\",\"adminArea3\":\"TX\",\"type\":\"s\",\"displayLatLng\":{\"lng\":-96.7026,\"lat\":33.093685},\"linkId\":0,\"postalCode\":\"75013\",\"sideOfStreet\":\"N\",\"dragPoint\":false,\"adminArea1Type\":\"Country\",\"geocodeQuality\":\"ADDRESS\",\"geocodeQualityCode\":\"L1BAA\",\"mapUrl\":\"http://www.mapquestapi.com/staticmap/v3/getmap?type=map&size=225,160&pois=purple-1,33.093685,-96.7026,0,0|¢er=33.093685,-96.7026&zoom=12&key=Dmjtd|lu612hurng,as=o5-50zah&rand=1369286607\",\"adminArea3Type\":\"State\"}],\"providedLocation\":{\"latLng\":{\"lng\":-96.7026004,\"lat\":33.0936855}}}],\"options\":{\"ignoreLatLngInput\":false,\"maxResults\":-1,\"thumbMaps\":true},\"info\":{\"copyright\":{\"text\":\"© 2012 MapQuest, Inc.\",\"imageUrl\":\"http://api.mqcdn.com/res/mqlogo.gif\",\"imageAltText\":\"© 2012 MapQuest, Inc.\"},\"statuscode\":0,\"messages\":[]}}", "updateAuthor": { "name": "cliu", "key": "cliu", "displayName": "Chung Liu", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-04T15:33:27.000+0000", "updated": "2012-09-04T15:33:27.000+0000" }, { "id": "217524", "author": { "name": "cliu", "key": "cliu", "displayName": "Chung Liu", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Note for QE: when testing this, make sure you are packaging for distribution (deploytype production) instead of testing on device (deploytype test) otherwise the events won't be counted or show up in the analytics dashboard UI.\r\n", "updateAuthor": { "name": "cliu", "key": "cliu", "displayName": "Chung Liu", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-04T15:34:19.000+0000", "updated": "2012-09-04T15:34:19.000+0000" }, { "id": "409430", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket due to time passed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-06T22:38:16.000+0000", "updated": "2017-03-06T22:38:16.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }