Use only WiFi connection (not cellular network) in app?

My app has been rejected in the Apple app-store.

To fix this, it must use only WiFi and not cellular network connection when the user is using the application. The application uses UIWebView -- how can we go about implementing this restriction?

Any help will be appreciated, Thanks!


Take a look at the Reachability example from Apple.

With that, you can query the device about the current network status, so you can know if Wifi is available, or if a connection will need cellular network. In the last case, you may display an alert, and prevent your UIWebView to load the data.


If you have imported the reachability class into your project, and added the required framework(s), here's an example. This will test for an available WiFi connection:

Reachability * reach;
NetworkStatus  status;

reachability = [ Reachability reachabilityForLocalWiFi ];
status       = [ reach currentReachabilityStatus ];

if( status == ReachableViaWiFi )
    /* Hurray, you've got a WiFi connection! */
    /* No WiFi connection - Alert the user! */

Need Your Help

Jquery Validating grouped multiple select boxes

jquery jsfiddle

I am trying to validate multiple multi-select boxes.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.