Universal links app-site-association file were not downloading in iOS

Hi Team , I'm currently working on universal links. iOS application is build with react-native framework

Steps I did to achieve the universal links

Step 1 :

Created an app-site-association file

My AASA file format :

  "applinks": {
    "details": [
      {
        "appIDs": [
          "TEAMID.BUNDLEID"
        ],
        "components": [
          {
            "/": "*",
            "?": {
              "$web_only": "true"
            },
            "exclude": true
          },
          {
            "/": "*",
            "?": {
              "%24web_only": "true"
            },
            "exclude": true
          },
          {
            "/": "/e/*",
            "exclude": true
          },
          {
            "/": "*",
          },
          {
            "/": "/",
          }
        ]
      }
    ]
  }
}

Step 2 :

I have hosted the app-site-association file in .well-known path

https://staging.***.com/.well-known/apple-app-site-association

Step 3 :

I have enabled associated domains and added applinks in Entitlements also

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>com.apple.developer.associated-domains</key>
	<array>
		<string>applinks:staging.***.com</string>
	</array>
	<key>com.apple.developer.networking.multicast</key>
	<true/>
	<key>com.apple.developer.networking.wifi-info</key>
	<true/>
</dict>
</plist>

Step 4 :

https://app-site-association.cdn-apple.com/a/v1/staging.***.com

With the above apple cdn url , I can able to see the app-site-association file which I hosted in https://staging.***.com/.well-known/apple-app-site-association path.

Step 5 :

I have checked the console of phone with Xcode -> Devices -> Console

When my application trying to down the AASA file from my server , I got this below error :

swcd : Error getting enterprise-managed associated domains data. If this device is not enterprise-managed, this is normal: Error Domain=SWCErrorDomain Code=1701 "Failed to get associated domain data from ManagedConfiguration framework." UserInfo={NSDebugDescription=Failed to get associated domain data from ManagedConfiguration framework., Line=298, Function=<private>}

swcd : Developer mode enabled: NO

Kindly help me to resolve this issue

Thanks in advance.

Answered by DTS Engineer in 799497022

Thanks for the post! I'm currently trying to verify all the settings for your AASA file, but the link is obfuscated with the character *, preventing me from following it step by step to ensure everything is set up correctly.

I would recommend that you either post the complete link or refer to the official documentation: https://developer.apple.com/documentation/technotes/tn3155-debugging-universal-links

Apple's documentation provides detailed guidance on configuring Universal Links, and it may help you identify and resolve the issue you're encountering, which seems to be related to verifying the applinks. It would be great if you could go over it and verify the settings for yourself.

You can go over and verify. It seems like you got the error when verifying the applinks?

sudo swcutil verify -d example.com -j ./example.json -u https://example.com/test
{ s = applinks, a = ABCD123.com.example.app, d = example.com }:
Pattern "https://example.com/test" matched.

In case you can’t publish the complete links for the AASA file and after going over the Tech Note, you still have issues. I suggest you continue this conversation with one of our DTS Engineers privately. To do so, please submit a code-level support request. When you create the request, indicate that you were referred by someone at Apple and make sure to include a link to this thread.

Thanks for the post! I'm currently trying to verify all the settings for your AASA file, but the link is obfuscated with the character *, preventing me from following it step by step to ensure everything is set up correctly.

I would recommend that you either post the complete link or refer to the official documentation: https://developer.apple.com/documentation/technotes/tn3155-debugging-universal-links

Apple's documentation provides detailed guidance on configuring Universal Links, and it may help you identify and resolve the issue you're encountering, which seems to be related to verifying the applinks. It would be great if you could go over it and verify the settings for yourself.

You can go over and verify. It seems like you got the error when verifying the applinks?

sudo swcutil verify -d example.com -j ./example.json -u https://example.com/test
{ s = applinks, a = ABCD123.com.example.app, d = example.com }:
Pattern "https://example.com/test" matched.

In case you can’t publish the complete links for the AASA file and after going over the Tech Note, you still have issues. I suggest you continue this conversation with one of our DTS Engineers privately. To do so, please submit a code-level support request. When you create the request, indicate that you were referred by someone at Apple and make sure to include a link to this thread.

Universal links app-site-association file were not downloading in iOS
 
 
Q