[TIMOB-2245] iOS: Analytics error on shutdown 3.2 or earlier
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:58:31.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.5.0 |
Components | iOS |
Labels | 3.2, analytics, ios |
Reporter | Thomas Huelbert |
Assignee | Bill Dawson |
Created | 2011-04-15T03:14:40.000+0000 |
Updated | 2011-04-17T01:58:32.000+0000 |
Description
found on 3g iphone (3.1.2) 4th gen ipod (4.1) mobile sdk build 1.5.0.8846d87
1.3.2 or earlier, launch KS, connect to debug
2.hit the home button to close the app, view output
results:
Mon Nov 1 12:00:43 unknown
UIKitApplication:com.appcelerator.KitchenSink[0xa2f6][819] :
[DEBUG] attempt to send analytics event but
no network. will try again in 15 seconds
regression (not seen on 1.4.1.1), not seen on 4.0+ devices when quitting the running app (home, double click home button, quit the app)
Notes to self:
Not technically a regression. In 1.4, a deadlock stopped the message from even happening, but the end result was the same. The difference now is that we get to the error message instead of it being choked.
Reason for 3.2 and earlier: This is the shutdown sequence that doesn't happen in 4.0 because of the multitasking.
(from [654075659f771536a034446317787d08bcd41928]) [#2245 state:fixed-in-qa] Analytics now uses reachability directly, and forces synchronous ASI (as comments indicated it always should have). https://github.com/appcelerator/titanium_mobile/commit/654075659f771536a034446317787d08bcd41928"> https://github.com/appcelerator/titanium_mobile/commit/654075659f77...
Note that this update will involve a lot of "Reachability change" spam whenever an analytics event is fired, this is not a regression (just a side-effect). Strongly recommending that we just add Ti.Network 'change' listeners to watch reachability changes, and set reachability printing to 0 internally.
iphone 3g 3.1.3, ipad 3.2 1.5.0.3ee6a97