Search code examples
iosdeep-linkingbranch.ioios-universal-links

Branch.io deep links on iOS - Params not shared when app opened with universal links


I'm using the branch.io API to create deeplinks send by email to our users. When creating the link I add some metadata for the iOS app like the deelinkpath and other useful data.

I'm able to see these params when I copy the branch link and open the iOS app manually. And it works also when the link opens safari first before redirecting to the app.

However if the link opens the app directly from the email (universal link), branch doesn't recognise the link and returns

["+clicked_branch_link": 0, "+is_first_session": 0] 

Any idea on what I'm missing?

Thanks!


Solution

  • The issue was related to a wrong implementation of the Scene Delegate methods to manage the continue user activity as we support only iOS > 13.0.

    This new version of the Branch iOS SDK doc explains how to fix the implementation for apps using Scenes: https://help.branch.io/developers-hub/docs/ios-basic-integration#section-apps-using-scenes