I'm trying to mimic a Xamarin Android app i created in Xamarin forms but am having an issue with postAsJsonAsync. The goal is to post to an API controller and return an HTTP Response Message.
This is what is causing the problem
var response = client.PostAsJsonAsync(url.Text, bat).Result;
As far as I know I have all the needed libraries and like I said it is working on the xamarin android app. But for some reason forms keeps throwing the Syste,.aggregateException.
Any ideas?