Cannot read property 'type' of undefined


I’m trying to use ng-cordova network information

but there is error “Cannot read property ‘type’ of undefined” when i try to use it.

I didn’t forget to add ngCordova in my app initialization, the ng-cordova.min.js is before cordova.js.

I have read all posts here and in stackoverflow but it doesnt work for me.

How do you solve this?