title: Cordova-plugin-network-information is not working as expected
body: <p>I have installed <strong>cordova-plugin-network-information</strong> using CLI for a ionic project. I could see the plugin is referred in <strong>android.json</strong> file in root folder of project and also in <strong>cordova_plugin.js</strong> in android platform folder.</p>
  
  <p><strong>cordova_plugin.js:</strong></p>
  
  <pre><code>{
          "id": "cordova-plugin-network-information.network",
          "file": "plugins/cordova-plugin-network-information/www/network.js",
          "pluginId": "cordova-plugin-network-information",
          "clobbers": [
              "navigator.connection",
              "navigator.network.connection"
          ]
      }
  </code></pre>
  
  <p><strong>android.json:</strong></p>
  
  <pre><code>"cordova-plugin-network-information": {
              "PACKAGE_NAME": "com.ionicframework.fts1243245"
          }
  </code></pre>
  
  <p>I tried calling <strong>window.Connection</strong> in ionic ready as:</p>
  
  <pre><code>$ionicPlatform.ready(function() {
        if(window.Connection){
            if(navigator.connection.type == Connection.NONE){
                $ionicPopup.confirm({
                    title:"Internet Disconnected",
                    content:"The internet is disconnected on your device."
                })
                .then(function(result){
                    if(!result){
                       ionic.Platform.exitApp();
                    }else{
                        ionic.Platform.exitApp();
                    }
                });
            }
        }
  }
  </code></pre>
  
  <p>But, window.Connection return <strong>undefined</strong></p>
  
  <p>Can anyone please let me know what went wrong?</p>