Universal link opening excluded path on the app instead of browser.

I need my app to open all other links except domain.com. But clicking on domain.com still opens the app though I have added 'excluded': true. Below is my aasa file

{
    "applinks": {
        "apps": [],
        "details": [
            {
                "appID": "com.domain",
                "paths": ["NOT /"],
		            "components": [
                    {
                        "/": "/",
                        "exclude": true
                    },
                    {
                        "/": "/biz/*"
                    },
                    {
                        "/": "/offers/deal-detail*",
			            "?": { "oId": "*" }
                    },
                    {
                        "/": "/review/*"
                    },
                    {
                        "/": "/emailActionHandler*"
                    }
                ]
            }
        ]
    }
}

I have also tried to verify this with swcutil tool, and it gives the right matches and blocks 'domain.com'. But the actual behavior on an iOS device is not the same.

Thank you for the post and my apologies for the delay. I appreciate you including the JSON AASA file.

I've checked the AASA file link you provided: https://app-site-association.cdn-apple.com/a/v1 but I'm encountering a HTTP 404 error.

curl -v https://app-site-association.cdn-apple.com/a/v1

To initiate our investigation, I'd like you to assist me by following these steps:

  1. Please verify the AASA file URL: Ensure that it matches the correct format: https://<fully qualified domain>/.well-known/apple-app-site-association. From your app, could you please provide the exact link to your AASA file?

  2. Share Association Domain Entitlement: From your app project, I will need to see the Associated domain entitlement.

  3. Double-check AASA File Placement: Review the steps outlined in the Apple documentation on supporting associated domains: https://developer.apple.com/documentation/xcode/supporting-associated-domains.

Please note that I recommend reviewing our troubleshooting tech note TN3155: Debugging Universal Links, as it often contains helpful solutions to common issues: [https://developer.apple.com/documentation/technotes/tn3155-debugging-universal-links](https://developer.apple.com/documentation/technotes/tn3155-debugging-universal-links)

Once you have these details, please reply to this message, and I'll be happy to delve deeper into the investigation on your behalf.

Albert Pascual 
 Worldwide Developer Relations.

Universal link opening excluded path on the app instead of browser.
 
 
Q