I’m working on an application that downloads some data from the internet using NSData’s initWithContentsOfURL method. At startup I’m using some code from Apple’s Reachability sample to check if a wifi connection is available; if not, then the app just shows an error message and refuses to really start (as requested by my client). All is working fine on iPod and iPad, but on iPhone, my client reports much, much slower download speeds, unless he turns on airplane mode, in which case download speeds are on par with iPod / iPad speeds. So it seems that even though a wifi connection is available, the iPhone is probably using the cellular network to download the data. Which is really weird. Does anyone have any idea about what I might be doing wrong?
I’m working on an application that downloads some data from the internet using NSData’s
Share
I believe your answer is SCNetworkReachability which you already have access to since you are using Apple’s Reachability code.
You could also use this to enforce WiFi if that’s what you want.
Have a look at UIRequiresPersistentWiFi