You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.
I'v been through many issues and discussions, and still not able to fix it,
Calling $cordovaNetwork.getNetwork() or any function within the $cordovaNetwork gives Cannot read property 'type' of undefined
when I console.log the $cordovaNetwork.getNetwork without parenthesis () it prints the function code, that means it exist but when i add the () it give that error.
its not only in my project, even i tried other project from github that should be working it gives that error..
this is the code within the controller :
.controller('SignInCtrl',function($state,$scope,$cordovaOauth, $localStorage, $location,$cordovaNetwork){ console.log('wokring fine Side menu'); console.log($cordovaNetwork.getNetwork());
the network information plugin installed with this version
cordova-plugin-network-information 1.3.0 "Network Information
The text was updated successfully, but these errors were encountered:
Facing same issue. Found many issues reported with same $cordovaNetwork: TypeError: Cannot read property 'type', but no one has a solution. Saw couple of issues simply closed with a remark asking share a sample project.
I'v been through many issues and discussions, and still not able to fix it,
Calling
$cordovaNetwork.getNetwork()
or any function within the $cordovaNetwork givesCannot read property 'type' of undefined
when I console.log the $cordovaNetwork.getNetwork without parenthesis () it prints the function code, that means it exist but when i add the () it give that error.
its not only in my project, even i tried other project from github that should be working it gives that error..
this is the code within the controller :
.controller('SignInCtrl',function($state,$scope,$cordovaOauth, $localStorage, $location,$cordovaNetwork){ console.log('wokring fine Side menu'); console.log($cordovaNetwork.getNetwork());
the network information plugin installed with this version
cordova-plugin-network-information 1.3.0 "Network Information
The text was updated successfully, but these errors were encountered: