{ "id": "62532", "key": "TIMOB-1900", "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": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13170", "name": "Sprint 2012-06", "archived": true, "released": true, "releaseDate": "2012-03-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-03-13T12:14:20.000+0000", "created": "2011-04-15T03:05:04.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "reported-1.4.0" ], "versions": [], "issuelinks": [ { "id": "15356", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "62174", "key": "TIMOB-1542", "fields": { "summary": "iOS: 'pause' and 'resume' events don't seem to fire correctly", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-03-14T10:05:32.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": "{html}

To me it seems like the pause event is never fired. The only\r\nevent fired is the resume event. Close only seems to be fired when\r\nthe UIBackgroundModes have been set.
\r\nTested using iOS SDK 4.1, Titanium SDK 1.4.0 on iPhone 3GS.

{html}", "attachment": [], "flagged": false, "summary": "Application Events: Close, Resume, Pause - Pause never fired", "creator": { "name": "larsschwarz", "key": "larsschwarz", "displayName": "Lars Schwarz", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "larsschwarz", "key": "larsschwarz", "displayName": "Lars Schwarz", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "126937", "author": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Assigning to Ralf for triage

{html}", "updateAuthor": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:05:05.000+0000", "updated": "2011-04-15T03:05:05.000+0000" }, { "id": "183927", "author": { "name": "zakharov", "key": "zakharov", "displayName": "Jan Stanzel", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I think I am seeing the same problem. Titanium kind of fires the pause event (I'm seeing the \"[DEBUG] fire app event: pause\" from AppModule.m) but then the actual pause listeners in my code don't get called. So far I've been able to trace it throughout AppModule.m and then TiHost.m, there it still calls fireEvent for all pause listeners. After that, I'm not sure where I have to look. Sometimes, though (maybe 5% of the time) the pause listeners actually get called. When not, they'll get called upon resume (before the resume listeners get called).\r\n\r\nThis is a problem since I'm trying to set a flag whether the app paused correctly or some crash occurred, so it's pretty important to me. The workaround so far was to disable pausing the app via the Info.plist, but that's not really a good solution. Any ideas what might cause this?", "updateAuthor": { "name": "zakharov", "key": "zakharov", "displayName": "Jan Stanzel", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-22T04:34:04.000+0000", "updated": "2012-02-22T04:34:04.000+0000" }, { "id": "183946", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is a well-known issue that has to do with internal threading interactions. We're working on resolving it.\r\n\r\nThere is a build which fixes this issue but we are in the process of backing out the change due to performance hits.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-22T08:44:38.000+0000", "updated": "2012-02-22T08:45:58.000+0000" }, { "id": "186052", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Part of the PR #1597 omnibus (https://github.com/appcelerator/titanium_mobile/pull/1597) wrt \"pause\" which is the only event that is no longer correctly triggered.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-12T13:45:18.000+0000", "updated": "2012-03-12T13:45:18.000+0000" }, { "id": "186267", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Combined pull #1597 + #1645", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-13T12:14:20.000+0000", "updated": "2012-03-13T12:14:20.000+0000" }, { "id": "186432", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing bug. Verified fix in TIMOB-1542 and TIMOB-4538.", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-14T10:05:32.000+0000", "updated": "2012-03-14T10:05:32.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }