Making HTTP requests in iOS

EdEastwoodEdEastwood USMember ✭✭

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!

Best Answers

Answers

Sign In or Register to comment.