Branch.io(深层链接活动)在iOS12 swift上不起作用?

Har*_*k K 6 deep-linking ios swift branch.io

我们已经在应用程序中实现了深层链接活动。它适用于iOS11。当我们通过Web门户发送SMS时。它在iPhone中收到。更新到iOS 12后,我的iPhone设备未收到链接消息。这是我的代码如下:

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {

let branch: Branch = Branch.getInstance()
    branch.initSession(launchOptions: launchOptions, automaticallyDisplayDeepLinkController: true, deepLinkHandler: { params, error in
        if error == nil {}}

// Respond to URI scheme links
func application(_ application: UIApplication, open url: URL, sourceApplication: String?, annotation: Any) -> Bool {
    Branch.getInstance().handleDeepLink(url);
    return true
}
Run Code Online (Sandbox Code Playgroud)

我们还在plist中添加了branch_app_domain,branch_key和URL Type。

我们需要在代码中添加任何内容吗?

小智 3

将设备更新到 iOS 11.2+ 后,安装应用程序后,应用程序的 AASA 文件不再可靠地下载到您的用户\xe2\x80\x99s 设备上。因此,单击通用链接将不再一致地打开应用程序。您可以在 Branch 链接上设置强制 uri 重定向模式,以使用 URI 方案打开应用程序。在Apple Bug 报告中查看该问题的详细信息。

\n\n

如有任何其他问题,请写信至integrations@branch.io。

\n