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

Android navigator.connection.type is not equal to navigator.network.connection.type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.0
    • 2.3.0
    • cordova-android
    • None

    Description

      As per the documentation and example navigator.connection.type is what was previously navigator.network.connection.type.

      """
      Before Cordova 2.2.0, the Connection object existed at: navigator.network.connection.

      To match the spec, this was changed to navigator.connection in 2.2.0.

      navigator.network.connection still exists, but is now deprecated and will be removed in a future release.
      """

      But in the file that I am enclosing to reproduce the bug, navigator.connection.type is always (irrespective of connection) 'unknown'(0) though navigator.network.connection.type returns the correct value.

      Attachments

        1. index.html
          0.5 kB
          Thejaswi Puthraya

        Activity

          People

            agrieve Andrew Grieve
            theju Thejaswi Puthraya
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: