You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Kuan Yi Ming (JIRA)" <ji...@apache.org> on 2012/12/21 11:27:13 UTC

[jira] [Updated] (CB-2096) Online/Offline events no longer trigger when event listener is added

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

Kuan Yi Ming updated CB-2096:
-----------------------------

    Description: 
The online and offline event behaviour has changed from 2.1.0 to 2.2.0. In 2.1.0, the online event fires immediately when the event listener was added if there is an Internet connection, but doesn't in 2.2.0. Those events work fine in all other instances though when turning on/off mobile data etc. Is this change by design, or is it a bug?

Use the full example from http://docs.phonegap.com/en/2.2.0/cordova_events_events.md.html#online

  was:The online and offline event behaviour has changed from 2.1.0 to 2.2.0. In 2.1.0, the online event fires immediately when the event listener was added if there is an Internet connection, but doesn't in 2.2.0. Those events work fine in all other instances though when turning on/off mobile data etc. Is this change by design, or is it a bug?

    
> Online/Offline events no longer trigger when event listener is added
> --------------------------------------------------------------------
>
>                 Key: CB-2096
>                 URL: https://issues.apache.org/jira/browse/CB-2096
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, iOS
>    Affects Versions: 2.2.0
>         Environment: Android 4.1, 4.2, iOS 6. Affects both simulators and devices.
>            Reporter: Kuan Yi Ming
>            Assignee: Joe Bowser
>            Priority: Minor
>
> The online and offline event behaviour has changed from 2.1.0 to 2.2.0. In 2.1.0, the online event fires immediately when the event listener was added if there is an Internet connection, but doesn't in 2.2.0. Those events work fine in all other instances though when turning on/off mobile data etc. Is this change by design, or is it a bug?
> Use the full example from http://docs.phonegap.com/en/2.2.0/cordova_events_events.md.html#online

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira