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

Cordova Network Plugin - Adding NetworkManager::getType support for NetworkInfo.getTypeName() returning "CELLULAR"

    XMLWordPrintableJSON

Details

    Description

      The Android API 20 documentation currently states that "MOBILE" and "WIFI" are returned when referencing NetworkInfo.getTypeName().

      By testing on a Nexus 5 with the Android L Developer Preview, NetworkInfo.getTypeName() is actually returning "CELLULAR" and "WIFI" instead.

      Thus the Cordova Network plugin will only return "UNKNOWN" (line 270 in NetworkManager.java) unless the device is connected on a Wi-Fi network.

      Attachments

        Activity

          People

            Unassigned Unassigned
            neojato Kyle Paul
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: