Vercel and app-site-association giving a 404

I'm working on setting app-site-association for my site. I've added the app-site-association file to public/.well-known/app-site-association and confirmed that my file made it to apple CDN. I've also checked it on branch.io. The problem is, when I head to my site I get a 404. I checked sysdiagnose logs and can see the same

Error Domain=SWCErrorDomain Code=7 "SWCERR00101 Bad  HTTP Response: 404 Not Found -- {"status":"404 Not Found"}"  UserInfo={Line=275, Function=-[SWCDownloader. URLSession:dataTask:didReceiveResponse:completionHandler:], NSDebugDescription=SWCERR00101 Bad HTTP Response: 404 Not Found -- {"status":"404 Not Found"}, UnderlyingError=Error Domain=HTTP Code=404 "(null)" UserInfo={Line=275, Function=-[SWCDownloader URLSession:dataTask:didReceiveResponse:completionHandler:]}}

I'm not really sure where to go from here.

Try this :

  1. Plug a device into your Mac and open the Console App.
  2. Download the app to device while monitoring the logs on the Console App.
  3. Check for a line similar to swcd(CoreUtils)[3253] <Notice>: Added service 'applinks', appID ‘', domain ‘’ (you can filter the logs with “swcd”)

Check for any errors that may be occurring in the logs.

Additionally, here is a checklist I use when implementing Universal Links :

• Check your entitlements and ensure associated domains is present
• Check your domains and ensure that apple association website is downloadable via HTTP and HTTPS
• Check your App ID in asocial file and compare it to your entitlements
• Check that your app ID prefixes match
• Your .well-known takes precedence, if it is outdated Universal Links won’t work
• Ensure your SSL cert validation passes
• Redirects are not allowed

Please note that redirects aren't compatible with Universal Links. This is a common reason why Universal Links do not work.

Rico


WWDR | DTS | Software Engineer

Vercel and app-site-association giving a 404
 
 
Q