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
Try this :
- Plug a device into your Mac and open the Console App.
- Download the app to device while monitoring the logs on the Console App.
- 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