You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/07/28 20:18:05 UTC
[jira] [Commented] (CB-7301) Cordova Network Plugin - Adding
NetworkManager::getType support for NetworkInfo.getTypeName() returning
"CELLULAR"
[ https://issues.apache.org/jira/browse/CB-7301?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14644792#comment-14644792 ]
ASF GitHub Bot commented on CB-7301:
------------------------------------
Github user asfgit closed the pull request at:
https://github.com/apache/cordova-plugin-network-information/pull/16
> Cordova Network Plugin - Adding NetworkManager::getType support for NetworkInfo.getTypeName() returning "CELLULAR"
> ------------------------------------------------------------------------------------------------------------------
>
> Key: CB-7301
> URL: https://issues.apache.org/jira/browse/CB-7301
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android, Plugin Network Information
> Affects Versions: 3.3.0, 3.4.0, 3.5.0
> Environment: Android L
> Reporter: Kyle Paul
> Priority: Minor
> Fix For: 3.3.0, 3.4.0, 3.5.0
>
>
> The [Android API 20 documentation|http://developer.android.com/reference/android/net/NetworkInfo.html#getTypeName()] 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|https://github.com/apache/cordova-plugin-network-information/blob/master/src/android/NetworkManager.java]) unless the device is connected on a Wi-Fi network.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org