Document Maps SDK for iOS Guides Set Up Your Project ATS

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.

Product Name

Minimum HTTPS Version

Release Date

iOS Base SDK

V1.3.2 or later (Download)

2016-11-08

iOS 3D Map SDK

V4.5.0 or later(Download)

2016-12-08

iOS Search SDK

V4.4.1 or later(Download)

2016-12-02

iOS Location SDK

V2.2.0 or later (Download)

2016-11-02

iOS Navigation SDK

V2.3.0 or later (Download)

2016-10-13

Step 2: Enable HTTPS

Add the following code to enable HTTPS before configuring your AMAP API key.

[[AMapServices sharedServices] setEnableHTTPS:YES];