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

Add online and offiline plugin-network-information events support for the Browser platform

    XMLWordPrintableJSON

Details

    Description

      Initial implementation used XHR to check whether we connected to network or not. Two main problems of this approach is that it used CORS and wasn't able to detect local network access.
      So for better compatibility with specs it is better to use browsers native implementation of navigator.onLine property which properly handles all the aspects of network accessibility.
      navigator.onLine available for all modern browsers: http://caniuse.com/#feat=online-status

      Attachments

        Activity

          People

            vladimir.kotikov Vladimir Kotikov
            daserge Sergey Shakhnazarov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: