Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-2096

Online/Offline events no longer trigger when event listener is added

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 2.2.0
    • None
    • None
    • Android 4.1, 4.2, iOS 6. Affects both simulators and devices.

    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

      Attachments

        Issue Links

          Activity

            People

              shazron Shazron Abdullah
              yiming.kuan Kuan Yi Ming
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: