I am currently developing a cross platform app using Xamarin Forms PCL. I need to make an HTTP request to an API. This has to be integrated natively using the DependencyService.
On the Android side, I just use the HTTPClient. I am not as familiar with iOS, however, and all the tutorials I am finding are not offering much help.
I need to make a request to an API, post data to it and then receive a response back. What should I be using to do this? I have seen things about NSUrl and such but they don't really seem to be working on Xamarin and the Xamarin iOS docs don't mention anything about Internet connections. If anyone could could help me out, with whatever information they can offer, that would be great!
why don't use PCL libraries fot Http?
motzcod.es/post/78863496592/portable-class-libraries-httpclient-so-happy
I had the Http libraries in PCL and Android but not in iOS project. Silly me! Thanks for helping me realize this.
Answers
why don't use PCL libraries fot Http?
motzcod.es/post/78863496592/portable-class-libraries-httpclient-so-happy
I had the Http libraries in PCL and Android but not in iOS project. Silly me! Thanks for helping me realize this.