Universial Links Error - (SWCERR00201)

Hello, I'm currently configuring Universal Links and I'm getting error SWCERR00201 from Apple CDN.

$ curl -I -v https://app-site-association.cdn-apple.com/a/v1/pamestoixima.gr ... < Apple-Failure-Details: {"location":"http://www.pamestoixima.gr/.well-known/apple-app-site-association/"} Apple-Failure-Details: {"location":"http://www.pamestoixima.gr/.well-known/apple-app-site-association/"} < Apple-Failure-Reason: SWCERR00201 Insecure (non-https) redirects forbidden Apple-Failure-Reason: SWCERR00201 Insecure (non-https) redirects forbidden < Apple-From: https://pamestoixima.gr/.well-known/apple-app-site-association Apple-From: https://pamestoixima.gr/.well-known/apple-app-site-association ...

I cannot understand why it is mentioning http as the AASA is hosted at pamestoixima.gr that uses https, not http. I can get it via accessing https://www.pamestoixima.gr/.well-known/apple-app-site-association/.

I would greatly appreciate any help on this.

Thank you

Answered by Engineer in 814734022

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

Accepted Answer

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

Thank you for the feedback

Universial Links Error - (SWCERR00201)
 
 
Q