I have a simple Xamarin.android mobile app which is getting data from API hosted in local PC. Problem is when I run the app it will not get the result as expected.
_client is a HttpClient and I'm able to visit the same URL from emulator's browser and get the data. Following is my code.
protected async override void OnAppearing()
{
string content = await _client.GetStringAsync("http://192.168.10.101:1001/api/todo");
base.OnAppearing();
}
once I hit F5 emulator is firing up and running the app but it's not getting any data. Also when I debugging, once I hit the F10, await statement will execute an application will continue and will not wait.
Does anyone have any idea about this issue?
I'm using API version 9, level 28 and visual studio 2019 Thanks.