如果NSAllowsArbitraryLoads设置为YES,App Store是否拒绝提交?

jay*_*ubi 19 app-store ios ios9

iOS 9涉及的新ATS导致许多与http相关的功能停止工作.我必须将所有http请求URL添加到白名单中,或者我可以通过设置NSAllowsArbitraryLoads来禁用ATS YES.

有人知道App Store是否会拒绝提交,如果NSAllowsArbitraryLoads设置为YES

jay*_*ubi 18

谢谢大家的回答.

好消息是Apple Accepted我的应用NSAllowsArbitraryLoads设置为YES.

更新(感谢@Vijayts):Apple将在2016年12月底之后拒绝不符合ATS的应用程序.

资源

但是,如果只需要在Web(UIWebView/WKWebView/SafariViewController)中加载http://资源,则以下内容就足够了.

<key>NSAppTransportSecurity</key>
<dict>
    <key>NSAllowsArbitraryLoadsInWebContent</key>
    <true/>
</dict>
Run Code Online (Sandbox Code Playgroud)


Vij*_*adi 14

更新:Apple将在2016年12月底之后拒绝不符合ATS的应用程序.

资源

但是,如果http://只需要在Web(UIWebView/WKWebView/SafariViewController)中加载资源,则以下内容就足够了.

注意:此密钥仅适用于iOS 10.

<key>NSAppTransportSecurity</key>
<dict>
    <key>NSAllowsArbitraryLoadsInWebContent</key>
    <true/>
</dict>
Run Code Online (Sandbox Code Playgroud)

  • 那么我们在iOS 8和iOS 9中做什么呢? (3认同)

Sof*_*ner 7

苹果似乎改变了它的计划:

支持App Transport Security

为了给你额外的准备时间,这个截止日期已经延长,我们将在新的截止日期确认后再提供更新. https://developer.apple.com/news/?id=12212016b


Bil*_*lal 5

我们从 Apple 听到的最新消息NSAllowsArbitraryLoads是 2016 年 12 月。https://developer.apple.com/news/? id =12212016b

Apple 仍在接受新的应用程序和更新。我的新应用程序于 2017 年 4 月获得批准,NSAllowsArbitraryLoads设置为YES. 我最近也提交了更新,没有问题没有拒绝。