Skip to content

Instantly share code, notes, and snippets.

@haxpor
Created March 22, 2017 08:11
Show Gist options
  • Save haxpor/cfa02f10a61c21fa2d1895e6d6d4b13e to your computer and use it in GitHub Desktop.
Save haxpor/cfa02f10a61c21fa2d1895e6d6d4b13e to your computer and use it in GitHub Desktop.
Setup Branch.io for custom domain.

Two different versions of document as seen in

  1. https://dashboard.branch.io/start/existing-users/ios
  2. https://dev.branch.io/getting-started/sdk-integration-guide/ + https://dev.branch.io/getting-started/universal-app-links/guide/ios/

I followed each one separately for my custom domain (l.pbapp.net) as set in Link Domain section, and at last it doesn't work for me. Tested on iOS 9.3.2. The problem is whenever click on the link, it doesn't take me to the app. But SDK can detect the link I clicked previously when observe in debug log when directly run the app myself. So only "taking-me-to-app" part.

But I did the following to make it work

  1. Include the following in Info.plist
<key>branch_app_domain</key>
<string>l.domain.net</string>

That is recommended not to include in Info.plist if you're using custom domain on Branch.io document website.

  1. Associated Domains, I need to add all the following
applinks:na9w.app.link
applinks:na9w-alternate.app.link
applinks:l.domain.net
applinks:l-alternate.app.link

This is contrast and different from documentation instructing to add only applinks:[mycustomdomainorsubdomain] and XXXX-alternate.app.link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment