I'm experiencing some issues with the CordovaNetwork plugin in an IONIC v1.x application.
After installing it using the command:
sudo cordova plugin add cordova-plugin-network-information
I injected the plugin into an angular controller like this:
.controller('HomeCtrl',function($cordovaNetwork)...
When testing it with:
console.log($cordovaNetwork.isOnline());
I encountered the following error:
$cordovaNetwork.isOnline() is not a function
I've tried removing and reinstalling the plugin, but the issue persists. The problem also occurs on the IOS platform. Here's how my cordova files are included:
<!-- cordova script (this will be a 404 during development) -->
<script src="lib/ngCordova/dist/ng-cordova.js"></script>
<script src="cordova.js"></script>
Can anyone help me figure out what I might be doing wrong? Thank you!