"Could not successfully update network info during initialization" - causes app to hang while loading

We’ve noticed that when a device has a poor network connection, our app can take an extremely long time to load, to the point where it appears like it has crashed. It does not happen if you have NO internet connection, only when it is a slow connection.

We see this error: Could not successfully update network info during initialization.  

I can easily reproduce it by using the network link conditioner tool on iOS, and setting the DNS delay to 10000ms.

It’s possible that it is our server calls holding things up, but generally we don’t have that many (unless the user is logged in but this error happens even when they are not) and they should all be asynchronous anyway.

Could it be a plugin or attempting to load the store that is holding things up? Has anyone experienced this error before and found a definitive cause?

We think we found the cause of our problems. We use a “hasInternet” function, and it appears that this is what was causing the holdup. We’ve fixed it by pinging an ip address instead of a domain name, which seems to have done the trick.

But I have noticed something rather odd. When we had this bug, the game would hang on the Default.png splash screen. So I deleted the game from my device, rebuilt a Corona sample “AnchorPoints” for iOS using the same provisioning profile as I use for my game and installed that. 

When I first loaded the sample, it too hung on the Default.png screen for about 10s even though it doesn’t make any network calls. Every time after that it would load ok. 

It’s not the end of the world, but I wonder has anyone spotted this behaviour before. It’s as if iOS has remembered some info about an uninstalled app and then applied it the newly installed app which uses the same prov profile.

We think we found the cause of our problems. We use a “hasInternet” function, and it appears that this is what was causing the holdup. We’ve fixed it by pinging an ip address instead of a domain name, which seems to have done the trick.

But I have noticed something rather odd. When we had this bug, the game would hang on the Default.png splash screen. So I deleted the game from my device, rebuilt a Corona sample “AnchorPoints” for iOS using the same provisioning profile as I use for my game and installed that. 

When I first loaded the sample, it too hung on the Default.png screen for about 10s even though it doesn’t make any network calls. Every time after that it would load ok. 

It’s not the end of the world, but I wonder has anyone spotted this behaviour before. It’s as if iOS has remembered some info about an uninstalled app and then applied it the newly installed app which uses the same prov profile.