From case 58501:
I’ve discovered an issue with Reachability, not sure if it’s a bug or not. If the iPad has a cellular modem, Airplane mode is ON and Cell Data shows ‘Airplane Mode', Reachability (See attached) returns true, as if it can reach the Internet. But when I try to load a site I get back a DNS error, can’t resolve the site. If I turn off cellular data and have Airplane mode on I get false from Reachability (as one would expect). Does this sound like a bug or is the Reachability class missing something?
Here is a sample of how I call Reachability:
//Load server side help content
var url = new NSUrl("http://www.cognitopia.com/pphelp.php?screen=" + appDelegate.store.currentScreen);
Log.WriteLog("Help " + url.AbsoluteString);
var urlRequest = new NSUrlRequest(url);
Note that in the sample project I provided, since I didn't know what was returned by appDelegate.store.currentScreen, I just used the base URL, i.e. nothing after the ?, but that shouldn't matter for DNS lookups I wouldn't think.
Additional note: Issue did not occur for me with an iPhone with a cellular data plan.
I have checked this issue with attached sample on iPad. I made setting as mentioned in comment 2, I debug application and noticed that "Reachability.IsHostReachable("www.cognitopia.com")" return false and
Xamarin Studio 4.2.2 (build 2)
X.iOS : 220.127.116.11
Below if my observation for this issue:
1. For setting iPad with Airplane mode ON and Cellular data ON: function "Reachability.IsHostReachable("www.cognitopia.com")" return value true
2. For setting iPad with Airplane mode ON and Cellular data OFF: function "Reachability.IsHostReachable("www.cognitopia.com")" return value false
I see the same conditions as Sadik Ali on iPhone 5S using iOS 7.1
This didn't used to be a problem. Perhaps a bug was introduced with 7.1?