Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2245] iOS: Analytics error on shutdown 3.2 or earlier

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:58:31.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0
ComponentsiOS
Labels3.2, analytics, ios
ReporterThomas Huelbert
AssigneeBill Dawson
Created2011-04-15T03:14:40.000+0000
Updated2011-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)

Comments

  1. Blain Hamon 2011-04-15

    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.

  2. Jeff Haynie 2011-04-15

    (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...

  3. Stephen Tramer 2011-04-15

    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.

  4. Thomas Huelbert 2011-04-15

    iphone 3g 3.1.3, ipad 3.2 1.5.0.3ee6a97

JSON Source