6

I'm new to iOS and managed to implement the iOS Universal Links for an app following this.

I have created and uploaded the apple-app-site-association and configured/prepared the app to handle universal links.

It all works well and I can test it successfully when I build the app through xCode into a real device. However the universal links do not work when installing the app via TestFlight.

When installing the app via xCode I can see the HTTP request to the apple-app-site-association file in my web server. But when installing it via TestFlight doesn't seem to try to fetch the association file.

Does anyone knows if this is expected or how can get universal links working when deploying on TestFlight?

SPatel
  • 4,768
  • 4
  • 32
  • 51
velval
  • 3,072
  • 36
  • 45

3 Answers3

10

Make sure your Associated Domains are in both entitlement files: "Debug" and "Release". In my case all domains were listed in Entitlement-Debug.plist file but the Entitlement-Release.plist was empty.

After adding them manually to the 'Release' file - app installed via TestFlight started working with Universal Links.

radkoncy
  • 101
  • 1
  • 4
0

Distribution via Testflight will also not work, if you have protected test-Environments and use ?mode=developer to bypass Apple's CDN. Developer mode is only taken into account if the App is signed with a development profile.

Reference here: https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_developer_associated-domains

Benjamin Mesing
  • 4,075
  • 1
  • 18
  • 22
0

I was facing the same issue. The fix was to use the same BRANCH_KEY for both Debug and Release mode.

Rinki
  • 1
  • 1