You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Pepe Cano (JIRA)" <ji...@apache.org> on 2013/11/18 19:01:25 UTC

[jira] [Created] (CB-5430) [plugin-network-information] JS getInfo method does not work on Android

Pepe Cano created CB-5430:
-----------------------------

             Summary: [plugin-network-information] JS getInfo method does not work on Android
                 Key: CB-5430
                 URL: https://issues.apache.org/jira/browse/CB-5430
             Project: Apache Cordova
          Issue Type: Bug
          Components: Android
            Reporter: Pepe Cano


The error is described at http://stackoverflow.com/a/19894873/446317

Current JS implementation originates and exception because the "getInfo" method is available at the "navigator.connection" variable.

So, the only way to use the API is to call directly:
        cordovaRef.exec(function(v) {
        }, function() {
        }, "NetworkStatus", "getConnectionInfo", []);




--
This message was sent by Atlassian JIRA
(v6.1#6144)