Universal Links not working properly on iOS 13

Universal Links was working fine on iOS 12 but I ran into issues when I updated to iOS 13.1 yesterday.

URLs that's supposed to open the app when tapped are just opening up in the browser.

Some users on iOS 13 reported the same thing.


I believe AASA file is not being downloaded properly. I tried tapping on Open from the banner that appears on top of Safari when I land on one of my urls. This didn't help.

Sometimes it worked fine after few re-installs and reboots but when you re-install again it stops working.


I exported sysdiagnose and my swcutil_show.txt shows this for my app


Service: applinks App ID: (my app ID)
App Version: 102 
Domain: (app.myurl.com) 
User Approval: unspecified 
Site/Fmwk Approval: unspecified 
Flags: 
Last Checked: 2019-09-26 00:48:24 +0000 
Next Check: 2019-09-30 23:51:38 +0000


while other apps (Apple News app for example) looks like this


Service: applinks App ID:  ZL6BUSYGB3.com.apple.news
App Version: 2300.5 
Domain:  news.apple.com 
Patterns: {"/":"*"} 
User Approval: unspecified
Site/Fmwk Approval: approved 
Flags: systemApplication 
Last Checked: 2019-09-25 18:45:50 +0000 
Next Check: 2019-09-30 17:49:04 +0000


For some reason it's missing the Patterns (from AASA) and Site/Fmwk Approval is unspecified.

I also tried exporting sysdiagnose when universal link was working after several reinstalled and reboots.

My app did have something for Patterns with Site/Fmwk Approval approved


Right now I am confused as it seems like this is happening randomly.

Last night I reinstalled/rebooted the app and non of the urls opened my app This morning I reinstalled/rebooted the app several time and now the url is opening the app every time.

I am facing the same issue. Did you get it worked some how?

Assuming you are supporting all paths in your domain, try setting path in AASA as -

"paths": ["NOT /e/*", "*","/"]

Hope this helps

I have the same missing "Patterns" field for our app on iOS 13.1:

Service:              applinks
App ID:               TeamID.BundleID
App Version:          1.0.0.0
Domain:               my.domain.com
User Approval:        unspecified
Site/Fmwk Approval:   unspecified
Flags:               
Next Check:           0001-01-01 03:26:23 +0000

for specified "paths": ["NOT /_/*","/*"] in .well-known/apple-app-site-association

Also, I have noticed that some other apps are missing "Patterns" too and have "Site/Fmwk Approval: unspecified" on the same device.

They have specified some "paths" in .well-known/apple-app-site-association file, but I haven't succeeded to open any of them in the corresponded app instead of Safari.
Filled the bug report 7340740 in Feedback Assistant.

I am also facing this issue. Any ideas on how to fix this?

Would you mind posting your AASA file URL? I am also investigating this issue for my apps.
One thing I notice the difference is the hosts accepting http/1.1 working fine ("ALPN, server accepted to use http/1.1") with compare to the ("ALPN, server accepted to use h2").

In my device, lot of domains are failing to load the AASA files and randomly checking on the patterns using curl command, I find the same difference. May be some hint for all of you who are investigating this issue. In case you find any solution please do reply here.

This is happening with our app as well as the apple AppStore and Instagram and probably all apps.

Yesterday I had it take me to Safari for my app and the Banner Link at the top was for the Apple Store app! (Not the AppStore app)

Something is very broken in ios 13 regarding universal links.

We had the same problem, and our server served the content over h2. After changing to http/1.1 it started working also for iOS 13 devices! Thanks for taking note of this quirk.

I'm using http2 only and was having a problem with univeral links on iOS 13.1.2 on my iPhone, but not on iPad. I re-installed the app on both iPhone and iPad. iPhone - no go, but links worked again on iPad. After restarting iPhone and re-installing the app universal links started to work. Just sharing my experience here. Having to tell customers to restart iPhone and re-install the app is not optimal of course.

Same problem here and try all the way that the post said it might make work again by restart and reinstall multiple time. No luck always stuck with Safari and need to pull down to see the open from app. no way to get to the app directly anymore.

Any suggestion????

You can use this to debug:
https://ios13.dev/universal-links-debugging-on-ios-13-cjwsux93w001p6ws1swtstmzc
looking to my report I can see that exist "Next check"

Service: applinks

App ID: ---------.com.---------

App Version: 16

Domain: ----------.com

Patterns: {"/":"/---------test-server/idverification/"}, {"/":"/--------server/auth/verify/"}, {"/":"/-------server-qa/idverification/"}, {"/":"/--------server-qa/auth/verify/"}, {"/":"/------t-server-dev/idverification/"}, {"/":"/-------server-dev/auth/verify/"}

User Approval: unspecified

Site/Fmwk Approval: approved

Flags:

Last Checked: 2019-10-08 14:42:21 +0000

Next Check: 2019-10-13 14:37:19 +0000

Hi,


We had the same problem, but after upgrading to iOS 13.1.2 or (iOS 13.2 Developer beta) the bug automagically disappeared.
Thanks Apple for being so polite to let us know in this thread.

Hi,
We have same problem. In the Safari universal link doesn't work only forwards to the store.
But in the Notes or iMessage it works.
Aslo https://search.developer.apple.com/appsearch-validation-tool/ we cannot past verification. But it worked before iOS 13 release.

Hi,


We are also facing same issue for one of my new APP, Universal links worked fine in iOS 12 after upding to iOS 13 it stopped working.

Currentky running with iOS 13.1.2.


Tried above solutions mentioned by other users but it didn't worked out.


apple-app-site-association downoding automaticlly when app installed in simulator for iOS 13 but not even attept when app installing in iOS 13 device.

This has been happening to me as well since updating to iOS 13.


In iOS 12 everything works fine.

Same issue here.

I got same issue, even on iOS 13.1.2, any idea?

What is the work around. I did start having the problem until 13.1.3

We had the same problem

I'm running into the same issue for an iOS 13 device. I examined the Console output for "swcd" records while installing the app from Xcode, and found that it fails to download App Site Association file with the following error:


Error getting enterprise-managed associated domains data. If this device is not enterprise-managed, this is normal: Error Domain=SWCErrorDomain Code=1701 "Failed to get associated domain data from ManagedConfiguration framework." UserInfo={NSDebugDescription=Failed to get associated domain data from ManagedConfiguration framework., Line=250, Function=<private>}


My device isn't enterprise-managed, but it's registered as a test device for my developer account.


So far, I have no idea how to fix this error, nor how to get Universal Links to work.


I've also tried the new format for Association File that Apple suggested for apps supporting iOS 13+, but got the same result (links open in Safari).

Hi Aleks,


I was having the same error. What I did was I uninstalled the application, restarted the phone, reinstalled the application and that error message stoped showing up.


My wild guess is that it may be related to the SSL/TLS or AASA file getting cached between OS updates, which causes for the `ManagedConfiguration` framework to fail to fetch new AASA files after the OS upgrade.

I'm also facing the same issue for iPhone 8+ with iOS 13.1.3. It works well with iOS 12, when I updated it to the latest version seems like the Universal Links are broken. I tried this https://ios13.dev/universal-links-debugging-on-ios-13-cjwsux93w001p6ws1swtstmzcPls help to resolve this issue.

I am seeing the same issue with ios 13.1.3. This is a new application i am developing and have wasted so much time on this thinking it was something i was doing wrong. Put the app on ios 12 and it worked perfectly.


Has anyone discovered the root cause or is there a workaround?

Same problem here with iOS 13.2 and it's freaking me out 😠

hmm, 13.2 actually resolved it for me

Hi,


I tried uninstalling and I am still getting the same error:


Error getting enterprise-managed associated domains data. If this device is not enterprise-managed, this is normal: Error Domain=SWCErrorDomain Code=1701 "Failed to get associated domain data from ManagedConfiguration framework." UserInfo={NSDebugDescription=Failed to get associated domain data from ManagedConfiguration framework., Line=250, Function=<private>}


Something else to try?

Universal Links not working properly on iOS 13
 
 
Q