[TIMOB-10773] iOS: Only send ti.geo analytics event once when user sets a ti.geolocation callback
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-10-09T03:39:58.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | Release 3.0.0, Sprint 2012-20 API, 2012 Sprint 20 |
Components | iOS |
Labels | api, look1, parity |
Reporter | Chung Liu |
Assignee | Sabil Rahim |
Created | 2012-09-04T20:24:10.000+0000 |
Updated | 2017-03-17T18:49:57.000+0000 |
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.
Testing steps:
1. Launch a simple app with this code in production (Package in iOS/Android App store)
Ti.Geolocation.addEventListener('location', function(e) {
});
2. Drive around a little bit to trigger location change (home -> work. etc.)
3. Put app's name and GUID in this ticket so we can look up analytics events that was fired.
PR pending https://github.com/appcelerator/titanium_mobile/pull/3127
Closing ticket as fixed.