Xamarin.iOS AppDelegate HTTP Calls

Max Houghton 1 Reputation point
2021-03-09T09:43:43.577+00:00

I'm using a HttpClient within a data service class to perform HTTP requests. This service is registered with dependency injection (using Autofac) and I create an instance of this service using DI in the AppDelegate FinishedLaunching method. When I try and make any calls using the data service the request takes over 30 seconds then times out every time. Is there a reason I can't do HTTP requests in the FinishedLoading method?

Developer technologies .NET Xamarin
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.