开发 Location SDK for iOS Guides Set Up Your Project ATS

ATS 最后更新时间: 2026年07月02日

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.

Product

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];
返回顶部 示例中心 常见问题 智能客服 公众号
二维码