Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1424] resume event is fired twice

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:56:08.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.6.0 M10
ComponentsiOS
Labelsdefect, ios, release-1.6.0, resume
ReporterNolan Wright
AssigneeJeff Haynie
Created2011-04-15T02:51:59.000+0000
Updated2011-04-17T01:56:08.000+0000

Description

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

Ti.API.info('resume fired')

});

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

Comments

  1. Robby 2011-04-15

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

  2. Ygor Lemos 2011-04-15

    I got the same on 1.4.2 - iOS 4.1 and 4.2

    resume events are getting fired twice every time we resume app execution.

  3. Stephen Tramer 2011-04-15

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

  4. Stephen Tramer 2011-04-15

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

  5. Don Thorp 2011-04-15

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

  6. Don Thorp 2011-04-15

    forgot to mark resolved.

JSON Source