Reputation: 291
So here is the scenario: a device is connected to the WIFI network but the WIFI router has no internet access. In other words device is connected to a WIFI network on which internet is not accessible. If I call await CrossConnectivity.Current.IsRemoteReachable("https://github.com", msTimeout: 1000);
, the call is taking much longer than 1 second (timeout that I mentioned). Any ideas as to why it is happening? and how can I fix it?
I am using version 3.1.1 available here.
Upvotes: 1
Views: 861
Reputation: 246
It is a issue of Xam.Plugin.Connectivity.
IsRemoteReachable function returns the "false" value, instead of returning after the max time. Someone logged your problem: https://github.com/jamesmontemagno/ConnectivityPlugin/issues/117 https://github.com/jamesmontemagno/ConnectivityPlugin/issues/145
Upvotes: 1