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

1

7

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 ??

Minacious answered 2/1, 2019 at 4:58 Comment(5)
You have to change in you info.plist file need add key and URL Types.Keelby
yes. I have added branch_app_domain, branch_key and URL Type alsoMinacious
@HarikarthickK have you add association domain ?Hobart
yes. It was working in iOS11 but after updating the iOS12 i can't get any messages.Minacious
@HarikarthickK did you implement this method func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) in your appdelegate?Hobart
S
3

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 [email protected].

Sunil answered 3/1, 2019 at 10:6 Comment(2)
Where can I change the uri_redirect_mode in branch dashboard?Minacious
@HarikarthickK Is your issue resolved? Did you find where we can change that uri_redirect_mode?Malvin

© 2022 - 2024 — McMap. All rights reserved.