deep link parameters not available is iOS app


I’m using branch for the first time and am having trouble accessing the deeplink parameters. My link looks to appear to have the correct data when I append the ?debug=true to check the data exists, and yet when it launches my app I see the following:

2016-12-05 10:09:45.687784 App[524:72875] deep link data: {

"+clicked_branch_link" = 0;

"+is_first_session" = 0;

"+non_branch_link" = "";



This is outputted when I click on a branch link that successfully opens the app, but it appears to not have been registered as a launch from a branch link. (Going by what I assume to be  incorrect values for both +clicked_branch_link, and +non_branch_link.)

The above console trace is outputted by the following code taken from one of the integration guides and placed in the application:didFinishLaunchingWithOptions: methods:

[Fabric with:@[[Crashlytics class],[Branch class]]];

[[Branch getInstance] initSessionWithLaunchOptions:launchOptions andRegisterDeepLinkHandler:^(NSDictionary *params, NSError *error) {

if (!error && [params objectForKey:@"+clicked_branch_link"]) {

// This code will execute when your app is opened from a Branch deep link, which

// means that you can route to a custom activity depending on what they clicked.

// In this example, we'll just print out the data from the link that was clicked.

NSLog(@"deep link data: %@", [params description]);



I can see when I visit in a desktop web browser that all the data, is in fact there, it just doesn’t seem to be picked up when the app is launched via the branch link.


Any idea what I might be doing wrong here?

1 Answer(s)
Answered on December 6, 2016.

Hey – thanks for posting the question. I am looping in our integrations team to have a look at it.