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

Offline event doesn't work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.2.0
    • 2.2.0
    • cordova-android
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: