5

I followed the instructions to implement the Universal Links in our ios app. Our requirement is to have 3 Links/Paths that would open in the app. Everything looks correct and match the documentation, the problem is that only the first path opens the app, the others do not work at all.

Using the Universal Links Validation Tool from Apple I can see that the link that is working pass the Universal Links validation but the links that are not working do not pass the validation.

Do you know what could be missing? Do I need to add anything else to page to enable the Universal Links?

This is how my apple-app-site-association files looks:

{
"applinks": {
    "apps": [],
    "details": [{
        "paths": [
            "/content/*", "/cars/suv/*", "/promos/"
        ],
        "appID": "78YHXXXX.com.myid.myapp"
    }]
}
}

The universal link mysite.com/content/1001 works fine, but neither mysite.com/cars/suv/1001 or mysite.com/promos are working.

3
  • have you add the second and third path in the apple-app-association file. Commented Jan 13, 2018 at 4:52
  • Yes, all the paths are correctly set in the apple-app-site-association file. Commented Jan 15, 2018 at 13:37
  • facing the same problem Commented Aug 24, 2020 at 21:30

2 Answers 2

6

Try deleting the app and reinstalling it.

When you update the AASA file on your webserver, it does not update the cached AASA file on the device. This means that all app users will not receive the newest AASA file until they either update their apps to a new build or delete and reinstall the app.

4
  • 1
    I've tried that already. Deleted the app and installed fresh from the App Store and also tried installing from Xcode. No luck with both cases, only the first Universal Link works. Thanks for answering that, it may help someone experiencing problems with the Universal Links. Commented Jan 17, 2018 at 22:57
  • You should try checking the device logs to ensure that your AASA file is actually getting downloaded then. See here Search for the domain of your AASA in the logs and if it looks like its not getting downloaded then check if your on iOS 11.2. That build has AASA issues Commented Jan 17, 2018 at 23:09
  • I checked and the file is being downloaded as expected. Still only one link is working. Thanks for the suggestion. Commented Jan 19, 2018 at 16:19
  • For potential future readers: I had to delete ALL apps mentionned in the apple-app-site-assiociation (not only the one I was testing universal link with) Commented Nov 27, 2020 at 11:57
5

Ran in to the same problem today. Uninstalling the app and cleaning the build folder in Xcode resolved the issue for me

1
  • Your solution worked. This issue appeared after downloading xcode 12.0 Commented Sep 20, 2020 at 6:17

Not the answer you're looking for? Browse other questions tagged or ask your own question.