ios – Can a Universal Link be triggered from a different domain than the AASA file’s host domain?


Consider a scenario where the AASA file is correctly configured and hosted at https://example1.com/.well-known/apple-app-site-association, and the associated Universal Link is https://example1.com/path.

Now, suppose I am on a domain, https://example2.com, which is neither a subdomain nor the parent domain of https://example1.com. If there is a button on this domain with a Universal Link pointing to https://example1.com/path, will it open the app?

I am aware that a Universal Link won’t open if triggered from the same domain where it is hosted, as mentioned in the Apple documentation here: https://developer.apple.com/documentation/technotes/tn3155-debugging-universal-links#Use-universal-links-on-your-site

To use a universal link to open your app while already browsing in Safari, use a different subdomain.

Following is stated in this link: https://developer.apple.com/documentation/xcode/allowing-apps-and-websites-to-link-to-your-content

“When a user browses your website in Safari and taps a universal link in the same domain, the system opens that link in Safari, respecting the user’s most likely intent to continue within the browser. If the user taps a universal link in a different domain, the system opens the link in your app.

Given this guidance, what would be the expected behavior if the Universal Link is triggered from a domain that is not the parent domain, essentially a completely different domain? Will it work as intended?

Latest articles

spot_imgspot_img

Related articles

Leave a reply

Please enter your comment!
Please enter your name here

spot_imgspot_img