[MonoTouch] Reachability - The operation couldn't be completed (NSURLErrorDomain error -1001)
Nic Wise
nicw at fastchicken.co.nz
Thu Oct 20 05:41:47 EDT 2011
I do this:
public static bool IsReachable (string host)
{
return Reachability.InternetConnectionStatus
() != NetworkStatus.NotReachable &&
Reachability.IsHostReachable (host);
}
and I pass in "app.londonbikeapp.com"
Works 100% of the time for me :) Has since 3.x :)
On Thu, Oct 20, 2011 at 02:58, technohead <dj_technohead at yahoo.com> wrote:
> The call to Reachability looks as follows:
>
> bool hasNetwork = Reachability.IsHostReachable(host);
>
> where host is google.com or facebook.com, etc.
>
>
> --
> View this message in context: http://monotouch.2284126.n4.nabble.com/Reachability-The-operation-couldn-t-be-completed-NSURLErrorDomain-error-1001-tp3920618p3920686.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> MonoTouch at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monotouch
>
--
Nic Wise
t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/
Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p
mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2
More information about the MonoTouch
mailing list