{ "id": "63325", "key": "TIMOB-2693", "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": "11237", "name": "Release 1.6.0 M04", "archived": true, "released": true, "releaseDate": "2011-01-10" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-11-12T21:50:50.000+0000", "created": "2011-04-15T03:27:11.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "background", "cleanup", "defect", "ios", "release-1.6.0" ], "versions": [], "issuelinks": [], "assignee": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-11-12T21:51:00.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": "It looks like there are points in shutdown/suspend where we need to ensure that certain operations are completed (such as\r\nuser-defined callbacks, analytics, etc.) We need to ensure that all of these are done before suspend/termination is complete on iOS 4.0+.\r\n\r\nIn particular, see the comment on this commit: https://github.com/appcelerator/titanium_mobile/commit/3165d74ad25b899f6d820b2ca76352fe13d9001a", "attachment": [], "flagged": false, "summary": "Add background cleanup handlers for termination/suspend", "creator": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "129208", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Termination is still on a 5s countdown. From the Apple documentation:\r\n\r\n\"However, if your application is currently running in the background state (in other words, not suspended), the system calls the applicationWillTerminate: method of your application delegate.\r\n\r\n*Your application cannot request additional background execution time from this method.*\r\n\r\nOtherwise, analytics events which are queued now have their dispatch completed before shutdown.\"", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:27:12.000+0000", "updated": "2013-11-12T21:45:30.000+0000" }, { "id": "129209", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [0a81aa09fe73b5261b897390ee99b11f824a6498])\n[#2693 state:fixed-in-qa] Background execution\nsupport for analytics. No other BG handlers appear to be needed at\nthis time. \nhttps://github.com/appcelerator/titanium_mobile/commit/0a81aa09fe73...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:27:12.000+0000", "updated": "2011-04-15T03:27:12.000+0000" }, { "id": "129210", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "To test this bug:\r\n\r\n# Start KS\r\n# Repeatedly FG/BG the app as quickly as possible\r\n# Watch analytics output; you should be seeing analytics events sent from the background (the reachability status info in the log is a good indicator this is happening).", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:27:12.000+0000", "updated": "2013-11-12T21:46:46.000+0000" }, { "id": "129211", "author": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Successful iPhone and iPad test on 01/28/2011

\n\n
\n

Mobile SDK version: 1.6.0 (01/26/11 18:53 bd12917...)

\n

iPhone Version: iPhone 4 / 4.2.1

\n

iPad Version: 4.2.1

{html}", "updateAuthor": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:27:12.000+0000", "updated": "2011-04-15T03:27:12.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }