Thanks for your post
I recommend that you review the application links configuration and rules from the troubleshooting guide.
https://developer.apple.com/documentation/technotes/tn3155-debugging-universal-links#Understand-applinks-configuration-and-rules
You’ll find this about domain and subdomains:
| Make sure your domains and AASA file paths match. To match a root domain and all subdomains with a wildcard, an AASA file should be hosted at: |
| https://example.com/.well-known/apple-app-site-association |
| This will only work with the root domain of applinks:example.com and subdomains that are matched with the wildcard applinks:*.example.com. This will not work with specific subdomains like applinks:www.example.com or applinks:foo.example.com. |
| To match a specific subdomain, an AASA file should be hosted at: |
| https://www.example.com/.well-known/apple-app-site-association |
| This will only work with applinks:www.example.com. Each specific subdomain in your applinks should have its own matching AASA file path. |
Based on the information provided, you will need to host two AASA file paths for the domain and the subdomain.
I hope this information is helpful. Please do not hesitate to contact me if you have any questions after reviewing the guide.
Albert Pascual
Worldwide Developer Relations.