Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17232] iOS: Analytics - Killing an app before the session timeout is generating a new session

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2014-06-28T01:43:10.000+0000
Affected Version/sRelease 3.3.0
Fix Version/sRelease 3.3.0, Release 3.4.0
ComponentsiOS
Labelsmodule_analytics, qe-3.3.0, qe-testadded
ReporterWilson Luu
AssigneeSabil Rahim
Created2014-06-27T17:38:19.000+0000
Updated2014-07-09T17:38:30.000+0000

Description

*Details:* Killing an app before the session timeout is generating a new session i.e. ti.background and a new ti.foreground (new sid) is sent. *Note:* This does *not* occur on native Android i.e. killing the app (backing out) and relaunching before a session timeout does not generate a new session. *Steps to reproduce:* 1. Create a default app in Xcode with APS analytics enabled OR import check.zip into Xcode 2. Install app onto device and wait for app to launch; point device to staging 3. Next, background the app, wait a couple of seconds, then kill the app (double-press home button and swipe up on app) 4. Bring the app back to the foreground before 30 seconds *Actual:* ti.background and a new ti.foreground is sent (see payloads.txt attachment). *Expected:* ti.background and ti.foreground should not be generated.

Comments

  1. Sabil Rahim 2014-06-27

    https://github.com/appcelerator/titanium_mobile/pull/5873 https://github.com/appcelerator/titanium_mobile/pull/5872
  2. Samuel Dowse 2014-07-09

    Verified fixed on: Mac OSX 10.9.4 Appcelerator Studio, build: 3.3.0.201407081443 Titanium SDK, build: 3.3.0.v20140708132513 Titanium CLI, build: 3.3.0-rc4 Alloy: 1.4.0-rc4 iOS Device: iPad Air (7.1.2) Followed steps in the description. If application is backgrounded and foregrounded again before the session timeout, and since we are still in the same session, no analytic payloads are sent for the background and foreground. Any new payloads sent after this background and foreground will have the same session ID. Closing.

JSON Source