You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Bryce Curtis (Resolved) (JIRA)" <ji...@apache.org> on 2012/03/23 06:16:24 UTC

[jira] [Resolved] (CB-375) Resume event should fire only when app is leaving background and coming to foreground, not during page load.

     [ https://issues.apache.org/jira/browse/CB-375?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bryce Curtis resolved CB-375.
-----------------------------

    Resolution: Fixed

https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-js.git;a=commit;h=ee965b37034f6f6ac9e19d778673c875d0b9ee2c
                
> Resume event should fire only when app is leaving background and coming to foreground, not during page load.
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-375
>                 URL: https://issues.apache.org/jira/browse/CB-375
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: CordovaJS
>    Affects Versions: 1.5.0
>            Reporter: Bryce Curtis
>            Assignee: Bryce Curtis
>             Fix For: 1.6.0
>
>
> The resume event behavior at init was accidentally included when moving from phonegap.base.js to cordova-js.
> The lifecycle behavior is:
>  * The only Cordova events that user code should register for are:
>  *      deviceready           Cordova native code is initialized and Cordova APIs can be called from JS
>  *      pause                 App has moved to background
>  *      resume                App has returned to foreground
>  * The DOM lifecycle events should be used for saving and restoring state
>  *      window.onload
>  *      window.onunload

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira