Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 408
HariKarthick Avatar asked Jan 02 '19 04:01

HariKarthick


People also ask

How does branch IO deep linking work?

Branch's deep links store contextual information about where a user wants to go, where the link was clicked, who originally shared the link, and an almost unlimited amount of custom data. This empowers you to build powerful personalization features to provide users better experiences and happier, stickier users.

How do I enable deep links on my Iphone?

First, open Xcode, go to Project settings -> capabilities. Scroll down to Associated Domains and turn it on. Once it is enabled, we shall add any URL that implements our apple-app-site-association resource, preceded by app links. Inside the Domains section, add a applinks:myApp.com.


1 Answers

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].

like image 97
Deepti Pandey Avatar answered Oct 13 '22 08:10

Deepti Pandey