Deep Link not working - what am I missing?

We’re trying to enable deep links for our application com.remonon.remonon. Only links that start with https://remonon.com/app/ should redirect to our app.

I’ve closely followed the tutorial at https://developer.apple.com/documentation/xcode/supporting-associated-domains.

Our apple-app-site-association is correctly placed at https://remonon.com/.well-known/apple-app-site-association and looks like this:

{
  "applinks": {
    "details": [
      {
        "appIDs": [
          "25N8TLPALL.com.remonon.remonon"
        ],
        "components": [
          {
            "/": "/app/*",
            "comment": "Only URLs under /app/ will be handled as deep links"
          }
        ]
      }
    ]
  },
  "webcredentials": {
    "apps": [
      "25N8TLPALL.com.remonon.remonon"
    ]
  }
}

Our *.entitlements looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>aps-environment</key>
	<string>production</string>
	<key>com.apple.developer.associated-domains</key>
	<array>
		<string>applinks:remonon.com</string>
		<string>webcredentials:remonon.com</string>
	</array>
	<key>com.apple.developer.default-data-protection</key>
	<string>NSFileProtectionComplete</string>
	<key>com.apple.security.application-groups</key>
	<array>
		<string>group.com.remonon.remonon</string>
	</array>
</dict>
</plist>

Our apple-app-site-association was published two weeks ago to make sure apple’s caches were able to catch up in the meantime.

Still, opening the link https://remonon.com/app/test on a real device with our app installed does not open our app but safari.

A while ago, when all remonon.com-urls should open our app instead of only those which have the "app" path prefix, the deep links was working perfectly fine.

What am I missing?

Answered by DTS Engineer in 818519022

Thank you for your post. After reviewing your configuration, it appears that your AASA files and server are functioning correctly. However, in your entitlement, you have omitted the “applinks” section that should be included within the application itself.

https://developer.apple.com/documentation/technotes/tn3155-debugging-universal-links#Understand-applinks-configuration-and-rules

Could you please provide instructions on how to configure the application link in Xcode?

Should be something like this:

[https://docs-assets.developer.apple.com/published/5a2a2e8fba33a95a14378a207c18dd0c/supporting-associated-domains-1~dark@2x.png)

From https://developer.apple.com/documentation/xcode/supporting-associated-domains

To troubleshoot the issue, I recommend following the Universal Links troubleshooting guide. This guide will provide you with a step-by-step process to identify the problem, ensuring that it is not the application missing from the Xcode configuration.

Albert Pascual
  Worldwide Developer Relations.

Please ignore that my username is "Deutsche Post DHL Berlin". I am currently in contact with apple developer support because I cannot change it.

Accepted Answer

Thank you for your post. After reviewing your configuration, it appears that your AASA files and server are functioning correctly. However, in your entitlement, you have omitted the “applinks” section that should be included within the application itself.

https://developer.apple.com/documentation/technotes/tn3155-debugging-universal-links#Understand-applinks-configuration-and-rules

Could you please provide instructions on how to configure the application link in Xcode?

Should be something like this:

[https://docs-assets.developer.apple.com/published/5a2a2e8fba33a95a14378a207c18dd0c/supporting-associated-domains-1~dark@2x.png)

From https://developer.apple.com/documentation/xcode/supporting-associated-domains

To troubleshoot the issue, I recommend following the Universal Links troubleshooting guide. This guide will provide you with a step-by-step process to identify the problem, ensuring that it is not the application missing from the Xcode configuration.

Albert Pascual
  Worldwide Developer Relations.

Thanks, I did not know you could test your links via the developer settings. Turns out my universal link works perfectly fine.

I was thinking so because when I open a hosted UI in my app that redirects back to my link, the web view goes to the remonon.com webpage instead of back to the app.

Do you know if it’s possible to link back to your app this way? I was told by the provider of that hosted UI that this would be possible.

Thanks for getting back to me! It’s great to hear that this is all sorted out.

In response to your subsequent inquiry, it is indeed possible to register another applink that, upon navigating in Safari, will reopen the original application with any parameters you may desire passed back to the application. This workflow is not only feasible but also quite common.

Albert Pascual
  Worldwide Developer Relations.

Thank you so much. Looks like I have to contact the provider of the hosted UI as the issue seems to be on their side then.

Deep Link not working - what am I missing?
 
 
Q