Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which type of "No Network Connectivity" warning should I use for my iPhone App

Tags:

ios

iphone

The app i'm developing for the app store infrequently needs network connectivity. I've already implemented a way to handle/notify the user when there is no network connection, but that only happens when they've initiated the request (click a button to make a web service call).

My question is, Does apple require a continuous check for network connectivity, i.e. their reachability example, or will the method I have implemented (checking for network connectivity only when certain actions are triggered) be acceptable for app store submission?

Thanks in advance.

like image 324
Logan Garland Avatar asked Dec 31 '25 01:12

Logan Garland


1 Answers

Checking for connectivity only when it's needed is sufficient. In fact, Apple discourages using Reachability as a "pre-flight" check. They say to just handle failure gracefully, and then use Reachability if necessary to watch for connectivity to come back.

like image 139
Brian Avatar answered Jan 02 '26 14:01

Brian



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!