Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

HttpClient has very large response time on Xamarin Android

$
0
0

I have followed the article https://docs.microsoft.com/en-gb/xamarin/android/app-fundamentals/http-stack?tabs=macos to make Xamarin Android application support TLS 1.2

When I call rest service, It takes 10+ seconds from Xamarin Android while 2 seconds from Xamarin IOS project.

Both project uses same PLC HttpClient code to call same service.

Code:

HttpClient client = new HttpClient();
HttpRequestMessage request = new HttpRequestMessage(HttpMethod.Get, restQuery);
response = await client.SendAsync(request);
string result = await response.Content.ReadAsStringAsync();

Raising this issue as it has considerable difference between IOS & Android environment in Xamarin.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



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