iOS Universal Links & Responsys Email Integration

Viewed 122

We have universal links implemented and are able to deeplink our users from website to App. Lets say our domain is xyz.com

The challenge we are facing is with Deeplinking our Email traffic to our App. Our marketing team uses Responsys and the marketing email we send have links in them with domain xyzemail.com. When the user clicks on these links they user gets redirected to our actual domain xyz.com

My question is what needs to be done so that email links also deeplink to our App when users clicks on email links with domain xyzemail.com?

Trying to Deeplink traffic from Emails to MobileApps

Not sure how to do this without using services of a vendor like Branch or Appsflyer

Currently when the user clicks on xyzemail.com links we open the actual page on xyz.com on safari browser

2 Answers

Unfortunately the universal links don't handle redirects. The only way to make it work is to host the apple-app-site-association file on that exact domain name "xyzemail.com" from the link, and add it to the entitlements file. It doesn't matter which app is showing the link (an e-mail client or another app), it will work from all apps.

Related documentation here

Include xyzemail.com to your supported applinks in Xcode project.

Via Capabilities -> Associated Domains target setting.

You also need to put the app association file on xyzemail.com

Related