branch.io

How to pass link query params to deeplink using Branch.io


Is it possible to create a branch link that receives a query param, and then use this parameters as a path param to the deeplink passed to the app?

Example:

Would this be possible (having this dynamic :id parameter)?


Solution

  • If your use case is to create dynamic links then definitely it is possible. If you would like to append custom data to one of the Quick Links you can do it in the following way -

    https://your.app.link/fzmLEhobLD?content_id=123
    

    For long links which can be created without network calls to Branch, you can have something like this -

    https://your.app.link/fzmLEhobLD?foo=bar&baz=456&$fallback_url=https%3A%2F%2Fbranch.io%2F 
    

    Similarly a dynamic long link would be -

    https://your.app.link/?foo=bar&baz=456&$fallback_url=https%3A%2F%2Fbranch.io%2F
    

    You can reference the following Branch Documents for all above examples -

    https://help.branch.io/using-branch/docs/creating-a-deep-link#section-create-deep-links

    https://help.branch.io/using-branch/docs/creating-a-deep-link#section-long-links