In my App i use httpclient with modernhttpclient.
In iOS, with Wifi On or Off, my requests to webservice works perfectly.
When I use Wifi on in Android, it works perfectly, too.
But when Wifi is off in Android, I have lte on, the request is taken too Long, so i get an timeout.
If I set httpclient.timeout, then it works after a few minutes.
But why is the Connection so slow on Android and in iOS not?
For your understanding, I use https.
What am I doing wrong?
client = new HttpClient(new NativeMessageHandler()); client.BaseAddress = new Uri(App.hostserveradress); var contentReset = new StringContent(mobileJSON, Encoding.UTF8, "application/json"); HttpResponseMessage responseReset = null; string resultReset = ""; responseReset = await client.PostAsync("GetResetFotos", contentReset); // Here it takes a few minutes on Android resultReset = await responseReset.Content.ReadAsStringAsync();