如果 NSAllowsArbitraryLoads 设置为 YES,App Store 会拒绝提交吗? [英] Does App Store reject submission if NSAllowsArbitraryLoads set to YES?
问题描述
iOS 9 涉及的新ATShttp 相关功能停止工作.我必须将所有 http 请求 url 添加到白名单中,或者我可以通过将 NSAllowsArbitraryLoads
设置为 YES
来简单地禁用 ATS.
The new ATS involved by iOS 9 cause lots of http related functionalities stop working. I have to add all the http request url into a whitelist or I could simply disable the ATS by setting NSAllowsArbitraryLoads
to YES
.
有谁知道如果NSAllowsArbitraryLoads
设置为YES
,App Store是否会拒绝提交?
Does anybody know if App Store will reject the submission if the NSAllowsArbitraryLoads
has been set to YES
?
推荐答案
更新:Apple 将在 2016 年 12 月结束后拒绝不符合 ATS 的应用.
UPDATE: Apple will reject Apps not conforming to ATS after the end of Dec 2016.
但是,如果您只需要在 web (UIWebView/WKWebView/SafariViewController) 中加载 http://
资源,那么以下内容就足够了.
However, If you need to load a http://
resource only in web (UIWebView/WKWebView/SafariViewController) then the following should suffice.
注意:此密钥仅适用于 iOS 10.
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoadsInWebContent</key>
<true/>
</dict>
这篇关于如果 NSAllowsArbitraryLoads 设置为 YES,App Store 会拒绝提交吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!