asad
asad

Reputation: 291

Xam.Plugin.Connectivity (by James Montemagno) is disregarding the timeout provided

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

Answers (1)

Tony Pham
Tony Pham

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

Related Questions