{ "id": "131242", "key": "TIMOB-17072", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-06-04T16:59:01.000+0000", "created": "2014-06-04T16:57:50.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [], "issuelinks": [ { "id": "38084", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "outwardIssue": { "id": "130930", "key": "NATIVESDK-141", "fields": { "summary": "iOS: Send ti.background event while the application is in the background", "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": "Critical", "id": "1" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-13T21:47:31.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": "Native SDK currently sends a ti.background event when the application comes to the foreground again or restarted. This affects the number of active sessions on the dashboard as the server times out these sessions after an hour. We can reduce the timeout but that reduces the time window instead of eliminating it completely. \r\n\r\niOS7 provides a nice background feature that allows an application to make network calls when an application is in the background. We should use this feature to send the ti.background event when the session timeout period expires (currently 30 seconds). Set a 30 second timer (or whatever duration user has specified) and send the events once this timer fires. Remove this timer if the application is foregrounded before the expiry of this timeout.\r\n\r\nPlease note that Android already implements this feature so this ticket brings iOS7 at par with Android.", "attachment": [], "flagged": false, "summary": "iOS: Send ti.background event while the application is in the background", "creator": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 105, "state": "closed", "name": "2014 Sprint 11 SDK", "startDate": "2014-05-27T21:43:32.338Z", "endDate": "2014-06-07T00:00:00.000Z", "completeDate": "2014-06-09T21:36:37.587Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "307523", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "TIMOB PR https://github.com/appcelerator/titanium_mobile/pull/5761 https://github.com/appcelerator/titanium_mobile/pull/5760", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-04T16:58:54.000+0000", "updated": "2014-06-04T16:58:54.000+0000" }, { "id": "309008", "author": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified on:\r\nMac OSX 10.9.3\r\nAppcelerator Studio, build: 3.3.0.201406111952\r\nTitanium SDK, build: 3.3.0.v20140613124912\r\nTitanium CLI, build: 3.3.0-rc\r\nAlloy: 1.4.0-rc\r\niOS Device: iPhone 5S (7.1.1)\r\n\r\nBackground event is sent while the application is still backgrounded.\r\nClosing.", "updateAuthor": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-13T21:47:23.000+0000", "updated": "2014-06-13T21:47:23.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }