Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

$cordovaNetwork returns me false even if I am connected

$
0
0

@nmarmon wrote:

I am using $cordovaNetwork to know when my project is connected 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 in the beginning, 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. If need more information, ask me.

thanks

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>