ASWebAuthenticationSession只有约50%的时间会触发通用链接。
创始人
2024-09-21 00:00:19
0

目前还没有官方的解决方法,但是可以考虑使用SFSafariViewController替代ASWebAuthenticationSession来解决这个问题。下面是一个示例代码:

let authURL = URL(string: "https://example.com/auth")!
let callbackURLScheme = "myapp"

let safariViewController = SFSafariViewController(url: authURL)
safariViewController.delegate = self

present(safariViewController, animated: true)

// SafariViewControllerDelegate callback methods
func safariViewController(_ controller: SFSafariViewController,
                          initialLoadDidRedirectTo URL: URL) {
    if URL.absoluteString.starts(with: "\(callbackURLScheme)://") {
        // Handle callback URL
    }
}

func safariViewControllerDidFinish(_ controller: SFSafariViewController) {
    // User dismissed the view controller without authenticating
}

相关内容

热门资讯

透视规律!wepoker透视脚... 透视规律!wepoker透视脚本下载,htx矩阵wepoker辅助(详细软件)1、构建自己的wepo...
透视软件!aapoker透视脚... 透视软件!aapoker透视脚本下载(透视)aapoker插件下载,细节方法(有挂揭秘)一、aapo...
透视总结!wepoker轻量版... 透视总结!wepoker轻量版书签,wepoker有没有辅助(详细俱乐部辅助);1、下载好wepok...
透视最新!aapoker透视方... 透视最新!aapoker透视方法(透视)aapoker辅助器怎么用,普及教程(有挂黑科技);1、进入...
透视好牌!wepoker辅助器... 透视好牌!wepoker辅助器安装包定制,wepoker能不能透视(详细透视脚本)1、完成wepok...
透视代打!aapoker辅助器... 透视代打!aapoker辅助器怎么用(透视)aapoker怎么设置提高好牌几率,新版2025教程(有...
透视工具!wepoker透视底... 透视工具!wepoker透视底牌,wepoker透视苹果系统(详细有人玩)所有人都在同一条线上,像星...
透视安装!wepoker轻量版... 透视安装!wepoker轻量版透视系统,wepoker买钻石有用吗(详细辅助软件教程)1)wepok...
透视脚本!aapoker透视插... 透视脚本!aapoker透视插件(透视)aapoker辅助工具安全吗,攻略教程(有挂插件);1、aa...
透视中牌率!aapoker俱乐... 透视中牌率!aapoker俱乐部靠谱吗(透视)aapoker怎么选牌,透牌教程(有挂揭秘)在进入aa...