Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

HttpClient GetAsync Method Hangs for Couple of Minutes If Network Not Available in Xamarin Forms iOS

$
0
0

Hi ,

X.F Version 3.4

This Issue exist in only Xamarin Forms iOS,But in Android its perfectly Working.

let say i am downloading an image

//Network Available
var image= await DownloadImage();

private Task <byte[]> DownloadImage()
{
//Network Not Available // here it hangs for a time range between 3-5 minutes and returns result
using(var responseMessage = await Client.GetAsync("url").ConfigureAwait(false)) {

}
}

See this issue https://github.com/xamarin/Xamarin.Forms/issues/3252

Anyone Facing Same issue , i am using NSUrlSession as HttpClientImplementation

@DavidOrtinau @JamesMontemagno @PaulDiPietro


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>