Branch.io (deep link activity) not working on iOS12 swift?

你离开我真会死。 提交于 2019-12-12 10:43:40

问题


We have implemented the deep link activity in our application. It worked in iOS 11. When we send SMS via a web portal. Its received in iPhone. After updated into iOS 12 the link messages are not received for my iPhone devices. Here is my code below:

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
}

we have added branch_app_domain, branch_key and URL Type in plist also.

Do we need to add anything in my code ??


回答1:


After updating a device to iOS 11.2+,the app's AASA file is no longer downloaded reliably onto your user’s device after an app install. As a result, clicking on Universal Links will no longer open the app consistently. You can set forced uri redirect mode on your Branch links to open the app with URI schemes. View details of the issue on the Apple Bug report.

For any further questions, please write to integrations@branch.io.



来源:https://stackoverflow.com/questions/54001408/branch-io-deep-link-activity-not-working-on-ios12-swift

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!