Proper way to check if there are internet when you're loading SplashScreen?


#1

I want to avoid that if you open the application I let you enter without having a connection on the phone. I have tried it this way but it gives me problems when I put the connection back. What is the correct way to recharge the application if you have no connection or is very slow?

      if(this.network.type == 'none'){
        alert('This app requieres an active connection');
        splashScreen.show();
        window.location.reload();
      }

This way doesn’t works


#2

Again, this seems like a really hostile UX. Can’t you just notify the user that some features won’t work until the network is better, and just leave it at that?


#3

Yes, i’m agree with you, but my app is a iframe and if the app starts without connection you’ll see it broke


#4

My understanding is that that’s pretty much an express ticket to rejection from app stores.