I am trying to make a simple http request in xamarin.forms and tested in Android emulator but doesent work.
var uri = new Uri("http://blablaServer/Currency/Get");
HttpClient myClient = new HttpClient(new AndroidClientHandler());
var response = await myClient.GetAsync(uri);
if (response.IsSuccessStatusCode) {
var content = await response.Content.ReadAsStringAsync();
Console.WriteLine("");
}
url is not live is internal, it works with postman or browser.... I am getting error "Cleartext HTTP traffic not permitted"
In release all urls it will be https but in development mode i need to play with http calls. Is this possible ??