Get universal links working

I'm trying to get universal links working for my app but it's becoming painfully frustrating.


I have created my unsigned apple-app-site-association file and uploaded to my web. Therefore, I have run the App Search API Validator (https://search.developer.apple.com/appsearch-validation-tool/) and Universal Links element's status appears as "RECOMMENDED", but I'm not getting any reason why the status isn't "PASSED".


Previously I was getting the following message: "The apple-app-site-association file was found but it doesn't follow the required format.", but not anymore.


The file is not signed but as I read in other posts, it's no longer needed to sign it.

Replies

That's the problem: application/pkcs7-mime


It would be really helpful if the validator said that rather than just "not valid".

That would be a great bug report to file at bugreport.apple.com.

For anyone else who comes here, a great tool for validating your apple-app-site-association file is https://jsonformatter.curiousconcept.com/

Make sure you plug the url for that file https://[your domain here]/.well-known/apple-app-site-association into the field, and it will quickly tell you if:


- The json is 100% valid

- The mime type is correct


Also, if you are testing BEFORE you release, you will get this message:

  • Error no apps with domain entitlements
  • The entitlement data used to verify deep link dual authentication is from the current released version of your app. This data may take 48 hours to update.

Which should really read "no apps in app store with domain entitlements"


The small piece you still need to do manually is making sure the file is served via 200, instead of a redirect.