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

Offline event doesn't work

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.2.0
    • Component/s: cordova-android
    • Labels:
      None
    • Environment:

      Samsung Galaxy S2 and Google Nexus 7

      Description

      The offline event doesn't work and I had said this before release, but you guys wanted to release PhoneGap 2.2.0

      This is my code:

      document.addEventListener("deviceready", onDeviceReady, false);

      function onDeviceReady() {
      document.addEventListener("offline", function()

      { alert("Er is geen internet verbinding!\nSchakel Wifi of 3G in"); }

      , false);
      }

      /* English: alert("No internet connection!\nPlease turn on Wifi or 3G"); */

        Attachments

        1. Menofood-2.zip
          1014 kB
          Remzi Cavdar

          Activity

            People

            • Assignee:
              bowserj Joey Robert Bowser
              Reporter:
              remzicavdar Remzi Cavdar
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: