使用隐藏的SFSafariViewController获取Safari cookie [英] Use hidden SFSafariViewController to get Safari cookies
问题描述
我正在阅读以下文章,对从移动网页到本机iOS 9应用程序的用户进行身份验证,并且想知道如何最好地实现隐藏的safari视图控制器,类似于下面谈到的隐藏控制器?
I was reading the following post on authenticating users from mobile web pages to native iOS 9 apps and was wondering how to best implement a hidden safari view controller similar to the hidden controller talked about below?
推荐答案
不要使用这种方法如果您要将应用程序分发到AppStore,因为根据更新的 App Store评论指南:
Don't use this approach if you're going to distribute your app to the AppStore, because according to updated App Store Review Guidelines:
5.1.1:
5.1.1:
(iv)必须使用SafariViewContoller向用户显示信息;控制器可能不会被其他视图或层隐藏或遮挡。此外,应用程序可能无法使用SafariViewController在未经用户知情和同意的情况下跟踪用户。
(iv)SafariViewContoller must be used to visibly present information to users; the controller may not be hidden or obscured by other views or layers. Additionally, an app may not use SafariViewController to track users without their knowledge and consent.
这篇关于使用隐藏的SFSafariViewController获取Safari cookie的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!