Ich habe ein kleines Problem mit dem CordovaNetwork-Plugin auf einer IONIC v1.x-Anwendung.CordovaNetzwerk wird vom Winkelregler nicht erkannt
ich installiert habe es mit einem
sudo cordova plugin add cordova-plugin-network-information
das Plugin in einem Winkelregler injizierte
.controller('HomeCtrl',function($cordovaNetwork)...
Testing es
tunconsole.log($cordovaNetwork.isOnline());
und ich bekomme diese Fehlermeldung:
$cordovaNetwork.isOnline() is not a function
Ich habe das Plugin bereits entfernt/installiert. Das Gleiche mit der IOS-Plattform. Und meine cordova Dateien enthalten wie diese sind:
<!-- cordova script (this will be a 404 during development) -->
<script src="lib/ngCordova/dist/ng-cordova.js"></script>
<script src="cordova.js"></script>
Was mache ich falsch? Vielen Dank!