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

some issues with "offline" and "online" method "Network information" plugin (Android)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.7.0, 3.6.3
    • None
    • phonegap 3.7.1 with all latest plugin
      ios 8.1.3
      winphone 8.1
      Android 4.4.2
      all real machine

    Description

      [android issues] (trigger twice or more times)
      document.addEventListener("offline", yourCallbackFunction, false);
      document.addEventListener("online", yourCallbackFunction, false);

      trust me...just try these step...
      turn off your network,it will trigger the "offline" method and only once time,good !!
      but after it,turn on your network,it will trigger the "online" method but two times,if execute again (turn off and turn on again),it will trigger "online" method but two or more times

      a issue exist in stackoverflow too !!! (although I am already use the phonegp 3.7.1)
      http://stackoverflow.com/questions/23871626/phonegap-3-4-bug-with-event-online-offline

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bau720123 Colin Bau
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - 12h
                  12h
                  Remaining:
                  Remaining Estimate - 12h
                  12h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified