Facebook Deeplink in ios always opens App store from deepview

Hi,

 

I have integrated Branch SDK through Fabric channel and distributed the app.  After installation of the app, I have shared deep link/ universal link to my facebook feed.

When i tap on FB feed, it opens deepview. After that when i tap on [Open The App] button on FB webview, it always the open the app store rather than my app.

But , when i open the app i get the deeplink data.

My expected behavior is when i tap on open the app it should open my installed app.

Branch SDK : 0.12.4 through Fabric.

Deepview: Enabled

Can you please highlight what i am missing or is this expected behavior from branch SDK?

Reg,

Sri

Catalyst Foundry LLC — Developer
3 Answer(s)
Answered on August 13, 2016.

This sounds like a Universal Links configuration issue. If you share the link somewhere other than Facebook, does the app open as expected? What applinks: entries do you currently have set up?

You can also take a look at our Universal Links troubleshooting guide for some other issues that often occur.

Branch — Developer
Answered on August 13, 2016.

Thanks Alex!

Yes, only facebook deeplink is not working.

I have setup the applink in info.plist and below code.

In  applciation didFinishLaunchingWithOptions method, 

FBSDKApplicationDelegate.sharedInstance().application(application, didFinishLaunchingWithOptions:launchOptions)

Branch.getInstance().accountForFacebookSDKPreventingAppLaunch()

        Branch.getInstance().initSessionWithLaunchOptions(launchOptions, andRegisterDeepLinkHandler: { params, error in

           // guard error != nil else { return }

            let userDidClick:Bool? = params?[“+clicked_branch_link”] as? Bool

            if userDidClick != nil && userDidClick == true {

              }

})

func application(application: UIApplication, openURL url: NSURL, sourceApplication: String?, annotation: AnyObject) -> Bool {

      // For Branch to detect when a URI scheme is clicked

        Branch.getInstance().handleDeepLink(url)

}

func application(application: UIApplication, continueUserActivity userActivity: NSUserActivity, restorationHandler: ([AnyObject]?) -> Void) -> Bool {

        // For Branch to detect when a Universal Link is clicked

        Branch.getInstance().continueUserActivity(userActivity)

        return true

    }

App links as:

applinks:outta.app.link

applinks:outta.test-app.link

 

Reg,

Sri.

Catalyst Foundry LLC — Developer
Commented on August 13, 2016.

Ahhhh here is the problem! You also need to add applinks:outta-alternate.app.link. iOS doesn’t allow Universal Links for URLs on the same domain, so since the deepview is hosted on outta.app.link, the button on the deepview uses a different domain (outta-alternate.app.link). Add that to your entitlements and give it another try — should be working after this.

Branch — Developer
Commented on March 3, 2017.

Hi Alex, I have added alternate applinks and I can see deeplink view but open in app always goes to app store. what could be wrong? Pleae help.

thanks

Software — Developer
Commented on March 6, 2017.

Hey – this seems to be a setup issue with Universal Links. Can you follow our troubleshooting guide for Universal Links here: https://dev.branch.io/getting-started/universal-app-links/support/ios/#troubleshooting-universal-links

Let us know if you still face the issue. Thanks!

Developer
Answered on August 13, 2016.

Thanks Alex!. you nailed it.

 

Reg,

Sri

Catalyst Foundry LLC — Developer
Commented on August 13, 2016.

Glad to hear it’s all working now!

Branch — Developer