Forum Xamarin.iOS

Announcement:

The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

Xamarin iOS api call fails suddenly when app goes to background or notification panel drawn

``In Xamarin iOS , when the api call starts requesting, when we switch app to background or the notification panel is drawn from the top, suddenly api call fails. Api returns bad request. This does not happen in android. api calls will be successful in background. When DidEnterBackground method has hit, api call will be failed by the time.I am using iOS OS 13.6 device. Forms has the latest version.Please help...

Best Answer

  • VipinKrishnaVipinKrishna Member ✭✭
    Accepted Answer

    In the iOS build settings,Changing the HttpClient Implementation option from NSUrlSession to Managed fixed the issue!!!

Answers

Sign In or Register to comment.