$cordovaNetwork returns false even if I am connected

Hi,

I am using $cordovaNetwork to know when my project is conneted to network and when not. I am using the method isOnline(), and it returns false. But it is not true, because I know I am connected when the device is ready. I have some information that I catch from internet that is loaded, so I have connection to internet.

When the event online is fired up? When $cordovaNetwork knows really that the application is online? Sometimes it shows me that there is connection (TRUE) but sometimes it shows me that there isn’t (FALSE).

Finally, I use that application, so I have change the state, and then $cordoaNetwork.isonline() returns me FALSE, very strange.

Can any one help me? The documentation is not very extensive. And If you can, give some example, please,

thanks