Consuming a web service from a mobile app
Apple's App Transport Security (ATS) forces developers to use good practice, including secure connections between an app and a web service. ATS is enabled by default and your mobile apps will throw an exception if they do not connect securely.
More Information: You can read more about ATS at the following link: https://docs.microsoft.com/en-us/xamarin/ios/app-fundamentals/ats
If you need to call a web service that is secured with a self-signed certificate like our NorthwindService
is, it is possible but complicated.
More Information: You can read more about handling self-signed certificates at the following link: https://docs.remotingsdk.com/Clients/Tasks/HandlingSelfSignedCertificates/NET/
For simplicity, we will allow insecure connections to the web service and disable the security checks in the mobile app.
Configuring the web service to allow insecure requests
First, we will enable...