{ "id": "132348", "key": "TIMOB-17232", "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": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" }, { "id": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-06-28T01:43:10.000+0000", "created": "2014-06-27T17:38:19.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "module_analytics", "qe-3.3.0", "qe-testadded" ], "versions": [ { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "issuelinks": [ { "id": "38693", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "outwardIssue": { "id": "132256", "key": "NATIVESDK-212", "fields": { "summary": "iOS: Analytics - Killing an app before the session timeout is generating a new session", "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": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-07-09T17:38:30.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "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.\r\n\r\n*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.\r\n\r\n*Steps to reproduce:*\r\n1. Create a default app in Xcode with APS analytics enabled OR import check.zip into Xcode\r\n2. Install app onto device and wait for app to launch; point device to staging\r\n3. Next, background the app, wait a couple of seconds, then kill the app (double-press home button and swipe up on app)\r\n4. Bring the app back to the foreground before 30 seconds\r\n\r\n*Actual:* ti.background and a new ti.foreground is sent (see payloads.txt attachment).\r\n\r\n*Expected:* ti.background and ti.foreground should not be generated.", "attachment": [], "flagged": false, "summary": "iOS: Analytics - Killing an app before the session timeout is generating a new session", "creator": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "APS SDK: 0.8.6\r\nXcode: 5.1.1\r\nDevice: iphone 5s (7.1.1)", "closedSprints": [ { "id": 133, "state": "closed", "name": "2014 Sprint 13 SDK", "startDate": "2014-06-23T21:55:20.791Z", "endDate": "2014-07-04T00:00:00.000Z", "completeDate": "2014-07-07T17:32:18.561Z", "originBoardId": 100 } ], "comment": { "comments": [ { "id": "311465", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile/pull/5873\r\nhttps://github.com/appcelerator/titanium_mobile/pull/5872", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-27T23:09:53.000+0000", "updated": "2014-06-27T23:09:53.000+0000" }, { "id": "313030", "author": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed on:\r\nMac OSX 10.9.4\r\nAppcelerator Studio, build: 3.3.0.201407081443\r\nTitanium SDK, build: 3.3.0.v20140708132513\r\nTitanium CLI, build: 3.3.0-rc4\r\nAlloy: 1.4.0-rc4\r\niOS Device: iPad Air (7.1.2)\r\n\r\nFollowed steps in the description.\r\nIf 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.\r\nAny new payloads sent after this background and foreground will have the same session ID.\r\nClosing.", "updateAuthor": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-09T17:38:17.000+0000", "updated": "2014-07-09T17:38:17.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }