Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.3.0, 3.4.0, 3.5.0
-
None
-
Android L
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.