title: Cordova plugin to detect internet connection
body: <p>my cordova app requires internet connection for some actions.
  i am using <a href="https://github.com/apache/cordova-plugin-network-information" rel="nofollow">https://github.com/apache/cordova-plugin-network-information</a> to get an event whenever the app goes online or offline.
  It works well with Mobile Data, but for Wifi, it acts a bit strange.
  Whether my wifi is connected to the internet or not, it reports that i am online in both cases.</p>
  
  <p>The behavior that i am expecting is to say i am online only when the wifi is connected to the internet.
  i am running ionic framework, angularjs, cordova 3.5.1, and using an Android, Galaxy S3 for testing.</p>