ATS
App Transport Security (ATS) is a security feature introduced by Apple in iOS 9. When ATS is enabled, it forces apps to connect to web services over HTTPS instead of HTTP, helping to protect user data through encryption. While ATS is enabled by default, developers could previously disable it to allow HTTP connections. However, starting January 1, 2017, Apple requires all apps submitted to the App Store to have ATS enabled.
The following steps describe how to configure the AMAP iOS SDK to support Apple's ATS security requirements. Follow these instructions to ensure your app is not affected when submitting to the App Store.
Step 1: Update the SDK
Update your SDK to the minimum version listed in the table below.
Step 2: Enable HTTPS
Add the following code to enable HTTPS before configuring your AMAP API key.
[[AMapServices sharedServices] setEnableHTTPS:YES];