Friday, January 8, 2010
Network Reachability on The iPhone
Posted by Jeff Campbell in "Apple Software (iPhone/iPod Touch)" @ 11:00 AM
Apple makes it clear: when applications rely on network connectivity, they must always test for a valid connection and report those results to the user. If the app cannot reach the Internet, the user needs to know. App Store reviewers regularly reject applications that do not test, and when a connection is not found, report that the network cannot be accessed.
Image Credit: Tympanus.net
Andrew Donoho, an iPhone developer, wasn't really happy with Apple's reachability code so he created his own, and posted it so others can use it as well. He has written up how to incorporate his code into any testing you need to do without having to go through the frustrations he experienced.