Branch.io options missing when added to existing link

I am trying to make the user click on the Branch.io link in the form https://a.test-app.link/identifier?foo=bar and then redirect to the AppStore to download the application. After that, the application will be able to capture the parameter fooduring startup.

To debug this, I performed the following procedure:

  • Create a link in a test environment.
  • Click the link on the device.
  • Install the application using Xcode.
  • Launch the application and read the options during startup using

    let branch = Branch.getTestInstance()
    branch.setDebug()
    branch.initSessionWithLaunchOptions(launchOptions, andRegisterDeepLinkHandler: { params, error in
        if error == nil {
            // params are the deep linked params associated with the link that the user clicked -> was re-directed to this app
            // params will be empty if no data found
            print(params)
        }
    })
    

I also set the correct API tokens in the info.plist file.

, , foo params, . - , . , params, , URL.

- , ?

+4
2

, , !

TL; DR: app.link, test-app.link. , , - - , .

, Branch (: https://bnpo.app.link/identifier?foo=bar), .

, - Apple Safari, , URL-, , Safari . , , "". , Link Clicks , URL- , , Safari, .

, SDK . https://bnpo.app.link/identifier , URL (https://bnpo.app.link/identifier?foo=bar), Safari https://bnpo.app.link/identifier, ?foo=bar.

, :

  • https://bnpo.app.link/identifier
  • https://bnpo.app.link/identifier?foo=bar

, URL- https://bnpo.app.link/identifier?foo=bar, https://bnpo.app.link/identifier , ( , , ).

, .

, . URL-, , .

, (+clicked_branch_link: 0) Branch init() ( ), ...

  • URL Notes Safari
  • URL Notes.

, . , !

+6

EDIT: . . , .


Alex from Branch.io :

, , , , . !

, , - , . , https://bnpo.app.link/identifier?foo=bar, foo:bar .

!

+2

All Articles