Edited our apple-app-site-association file and Universal Links still open Safari. What are we missing?
We fixed the paths in the AASA file yesterday, but links still open in the browser on our test phones. Where exactly should the file live, and does iOS cache it?
Answer from the Linkrunner team
Usually it's how the file is served, plus caching. Host it at https://yourdomain/.well-known/apple-app-site-association with no .json extension, served as application/json with a 200 and no redirect; a 301 or 302 makes iOS treat the association as invalid. Inside, the appID must be TeamID.bundleID using your 10-character Team ID, and paths match literally, so check wildcards and exclusions. Validate the raw bytes, since a trailing comma or BOM characters break parsing silently. The app also needs the associated-domains entitlement, for example applinks:yourdomain. Then the part most people miss: Apple fetches the file through a CDN at install time and caches it, so edits don't reach installed apps, or even fresh installs, straight away. Test on a real device, not the simulator, and change the file well before a campaign. Other iOS failure modes: https://linkrunner.io/blog/why-your-deep-links-break-on-ios-and-how-to-fix-every-failure-mode
More on this: linkrunner.io/blog/how-to-configure-aasa-universal-links