{ "id": "63753", "key": "TIMOB-3121", "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": "11360", "description": "Mobile 1.8.0 M07", "name": "Sprint 2011-28", "archived": true, "released": true, "releaseDate": "2011-07-18" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-11-01T12:48:17.000+0000", "created": "2011-04-15T03:37:27.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-02-10T00:52:22.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}

In iOS when a user double taps the home button to bring up the\r\nmultitasking bar, Titanium fires a pause event. If the user double\r\ntaps the home button again to dismiss the multitasking bar,\r\nTitanium does NOT fire a resume event.

\r\n

Found the same results when testing SDK versions 1.5.1,\r\n1.6.0.RC1, 1.7.0 w/ iOS SDK version 4.2

\r\n

Associated Helpdesk Ticket

\r\n

http://developer.appcelerator.com/helpdesk/view/72951

{html}", "attachment": [], "flagged": false, "summary": "Does Not Fire Resume Event When Returning from iOS Multitasking Bar", "creator": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "130118", "author": { "name": "gerrycardinaliii", "key": "gerrycardinaliii", "displayName": "Gerry Cardinal III", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Similarly, when a notification (e.g. text message) is received,\na pause event is fired, but no corresponding resume event is fired\nif the user dismisses the notification (and stays in the app).

{html}", "updateAuthor": { "name": "gerrycardinaliii", "key": "gerrycardinaliii", "displayName": "Gerry Cardinal III", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:37:27.000+0000", "updated": "2011-04-15T03:37:27.000+0000" }, { "id": "130119", "author": { "name": "gerrycardinaliii", "key": "gerrycardinaliii", "displayName": "Gerry Cardinal III", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Also, when the device is locked and unlocked, there is a pause\nevent, but no resume event.

\n

I now see that \"resumed\" (with a D) events are being fired when\nreturning from the multitasking bar. I haven't tested it yet, but I\nassume this is the case for dismissing notifications and unlocking\nas well. Maybe the \"resume\" event is an additional event only for\nwhen the app is relaunched from the background?

\n

So, maybe this is working correctly? Hopefully the documentation\nwill make the distinction between resume & resumed clear?

{html}", "updateAuthor": { "name": "gerrycardinaliii", "key": "gerrycardinaliii", "displayName": "Gerry Cardinal III", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:37:27.000+0000", "updated": "2011-04-15T03:37:27.000+0000" }, { "id": "159346", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Here's the breakdown of iOS native app delegate calls to Ti.App events:\r\n\r\n-(void)applicationWillEnterForeground:(UIApplication *)application\r\n fires a 'resume' event\r\n\r\n- (void)applicationDidBecomeActive:(UIApplication *)application\r\n fires a 'resumed' event\r\n\r\n-(void)applicationWillResignActive:(UIApplication *)application\r\n fires a 'pause' event\r\n\r\nCross-referencing with http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIApplicationDelegate_Protocol/Reference/Reference.html gives us:\r\n\r\nResume: In iOS 4.0 and later, this method is called as part of the transition from the background to the inactive state. You can use this method to undo many of the changes you made to your application upon entering the background. The call to this method is invariably followed by a call to the applicationDidBecomeActive: method, which then moves the application from the inactive to the active state.\r\n\r\nResumed: This method is called to let your application know that it moved from the inactive to active state. This can occur because your application was launched by the user or the system. Applications can also return to the active state if the user chooses to ignore an interruption (such as an incoming phone call or SMS message) that sent the application temporarily to the inactive state.\r\n\r\nPause: This method is called to let your application know that it is about to move from the active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. An application in the inactive state continues to run but does not dispatch incoming events to responders.\r\n\r\nShould this be a documentation or parity issue instead?", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-12T23:35:13.000+0000", "updated": "2011-07-12T23:35:13.000+0000" }, { "id": "159410", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Quick update: Android represents the lifecycle in a different fashion, so this is all iOS. So let's call this a documentation issue and note that the behavior is te expected one.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-13T12:50:20.000+0000", "updated": "2011-07-13T12:50:20.000+0000" }, { "id": "160484", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Validated & accepted pull.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-25T10:51:06.000+0000", "updated": "2011-07-25T10:51:06.000+0000" }, { "id": "164344", "author": { "name": "vsingh", "key": "vsingh", "displayName": "Vikramjeet Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested On:\n\nMac OSX Lion\nTiMob: 1.8.0.v20110819142548\nTiStud: 1.0.4.201108101535\n\nDevices:\n\niPhone 4 version 4.2.10\niPad2 version 4.3.5\niPod 3", "updateAuthor": { "name": "vsingh", "key": "vsingh", "displayName": "Vikramjeet Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-29T10:40:52.000+0000", "updated": "2011-08-29T10:40:52.000+0000" }, { "id": "171076", "author": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Missed reclosing this issue during scrub.", "updateAuthor": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-01T12:48:17.000+0000", "updated": "2011-11-01T12:48:17.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }