Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS Universal Links only works for one path

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.

like image 378
FelipeOliveira Avatar asked Dec 19 '22 01:12

FelipeOliveira


2 Answers

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.

like image 198
clayjones94 Avatar answered Jan 06 '23 07:01

clayjones94


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

like image 31
Dan Barclay Avatar answered Jan 06 '23 08:01

Dan Barclay