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 network 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.
This guide provides the solution for using the AMAP iOS SDK with Apple's ATS requirements. To ensure your app submission to the App Store is not affected, follow the steps below.
Step 1: Upgrade the SDK
Update your SDK to the minimum version listed in the following table.
Step 2: Enable HTTPS
Add the following code to enable HTTPS before configuring your AMAP API key.
[[AMapServices sharedServices] setEnableHTTPS:YES];