{ "id": "62056", "key": "TIMOB-1424", "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": "11243", "name": "Release 1.6.0 M10", "archived": true, "released": true, "releaseDate": "2011-02-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:56:08.000+0000", "created": "2011-04-15T02:51:59.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "defect", "ios", "release-1.6.0", "resume" ], "versions": [], "issuelinks": [], "assignee": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:56:08.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}

Titanium.App.addEventListener('resume',function(e)
\n{

\n
\nTi.API.info('resume fired')\n
\n

});

\n

add this to app.js, close app, re-open. printed twice

{html}", "attachment": [], "flagged": false, "summary": "resume event is fired twice", "creator": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "125632", "author": { "name": "robby", "key": "robby", "displayName": "Robby", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Seeing the same thing with 1.4.0. Better hope your resume\nhandler actions are idempotent! :)

{html}", "updateAuthor": { "name": "robby", "key": "robby", "displayName": "Robby", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:51:59.000+0000", "updated": "2011-04-15T02:51:59.000+0000" }, { "id": "125633", "author": { "name": "ygorlemos", "key": "ygorlemos", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I got the same on 1.4.2 - iOS 4.1 and 4.2

\n

resume events are getting fired twice every time we resume app\nexecution.

{html}", "updateAuthor": { "name": "ygorlemos", "key": "ygorlemos", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:52:00.000+0000", "updated": "2011-04-15T02:52:00.000+0000" }, { "id": "125634", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Tested as described with KS 1.6.0RC1 on iOS (startup,\nbackground, resume). Appears to be resolved on iOS. Assigning to\nDon for triage in case this affects Android.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:52:01.000+0000", "updated": "2011-04-15T02:52:01.000+0000" }, { "id": "125635", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Forgot to tag 'android' to move into the right bin.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:52:01.000+0000", "updated": "2011-04-15T02:52:01.000+0000" }, { "id": "125636", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Android doesn't fire the resume event since we don't get it at\nan app level. This is handled by\ncurrentActivity.addEventListener(\"resume\", ...) instead.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:52:01.000+0000", "updated": "2011-04-15T02:52:01.000+0000" }, { "id": "125637", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

forgot to mark resolved.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:52:02.000+0000", "updated": "2011-04-15T02:52:02.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }