I am trying to check for an established network connection through the phonegap/cordova API, but alas, it is not working. 

I added the plugin as explained on the cordova documentation, and `phonegap local plugin list` gives `[phonegap] org.apache.cordova.network-information`. 

However, simply calling 

```
document.addEventListener("deviceready", function () {
  alert(Object.keys(navigator.connection));
}, false);

```

results on my phone (Android 4.0.4) always returning `0` and running on an emulator with Android 4.4.2 logs into LogCat that `navigator.connection` is undefined. In fact, on both machines `alert(Object.keys(navigator));` never shows the `connection` key. 

Any solution?

Phonegap with Cordova 3.3.0