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. This document describes how to configure the AMAP iOS SDK to support Apple's ATS security feature. To ensure your app is not affected when submitting to the App Store, follow the steps below.
Before You Begin
- Upgrade the SDK to the latest version.
- Enable the HTTPS feature.
Enable HTTPS
Add the following code to enable HTTPS before configuring your AMAP Key:
[[AMapServices sharedServices] setEnableHTTPS:YES];Disable ATS
Although ATS is enabled by default, developers can disable it to allow their apps to transmit data over HTTP connections.
