简体   繁体   English

带广告的App Transport Security

[英]App Transport Security with Advertisements

I'm working on an app for a client that uses freewheel.tv to serve video ads. 我正在为使用freewheel.tv来投放视频广告的客户开发应用。 From what I can tell, freewheel allows ad providers to host their own ads which means that the ad domains are dynamic. 据我所知,freewheel允许广告提供商托管他们自己的广告,这意味着广告域是动态的。 I know that after the 1st, Apple is discouraging apps from setting NSAllowsArbitraryLoads to true. 我知道在1号之后,Apple正在阻止应用程序将NSAllowsArbitraryLoads设置为true。 I have read some posts about Apple allowing exceptions for certain scenarios but am hesitant to rely on that. 我已经阅读了一些关于Apple的帖子,这些帖子允许某些场景出现异常,但我对此依赖犹豫不决。

What is the best way to handle this scenario? 处理这种情况的最佳方法是什么? Do I just explain to my client that we will have to present our use case to Apple and hope they approve it or is there something else I can do? 我只是向我的客户解释我们必须向Apple展示我们的用例并希望他们批准它或者我还能做些什么吗? Any guidance here will be much appreciated. 任何指导将非常感谢。

Judging based on this video and many other resources What's New in Security you will need to provide Apple with a sufficient explanation why you need to have this exception. 判断在此基础上的视频和许多其他资源有什么新的安全 ,您需要提供苹果具有足够解释为什么你需要有这样的例外。 It's probably a good idea to get in touch with them ASAP. 尽快与他们取得联系可能是一个好主意。

Having a lot of experience with the Apple approval process, I can tell you that I'd be the most surprised person in the world if they let your app go in with the NSAllowsArbitraryLoads flag set to true and refuse everyone else's. 拥有Apple批准过程的大量经验,我可以告诉你,如果他们让你的应用程序将NSAllowsArbitraryLoads标志设置为true并拒绝其他人,那么我将成为世界上最惊讶的人。 The bottom line is that if freewheel.tv wants to keep doing business on iOS devices, they will have to find a solution for their customer to allow specific domains or make it a hard requirement to serve ads over HTTPS. 最重要的是,如果freewheel.tv希望继续在iOS设备上开展业务,他们必须为其客户找到一个解决方案,以允许特定域或通过HTTPS提供广告的硬性要求。

I highly doubt that having a conversation with Apple (if you can even get a hold of them for this) will any difference. 我非常怀疑与Apple进行对话(如果你甚至可以拿到它们的话)会有任何不同。

To solve your problem, you will either have to allow every domain you know is serving ads in your info.plist or change ads provider. 要解决您的问题,您必须允许您知道的每个域名都在您的info.plist中投放广告或更改广告提供商。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM