iOS 11.2 sometimes AASA file is not updated after app installation/reinstallation

Originator:ghaydamakha
Number:rdar://4999496467480576 Date Originated:12/06
Status:OPEN Resolved:NO
Product:iOS Product Version:11.2+
Classification: Reproducible:Sometimes
 
Sometimes, on any iOS 11.2+, the AASA file is not being updated after the application is installed. In that case, the only way to update it is to delete the app, restart the device, and install the app.
This was reproduced on multiple iPhone devices.

Applications that were installed on the device before the update will continue working, however, upon reinstalling - they may stop working.

Comments

I can confirm this is still an issue as of iOS 14.4 in about 15% of cases. Just filed a bug report and waiting to hear back.

By johnsonmh36 at Jan. 31, 2021, 4:13 p.m. (reply...)

This is still an issue as of 13.5.1. Makes it incredibly frustrating to implement Universal Links. What is the point if I can't even promise users it will work?

By cody.m.lucas at July 10, 2020, 1:57 p.m. (reply...)

Upvoting

We have the same issue, please help to fix as this impacts thousands of users for mission critical features taht we can't afford to not have work. This bugs needs fixing.

By florian.monfort at May 29, 2020, 3:44 a.m. (reply...)

Upvoting

This still appears to be an issue for us on iOS 12.4

By development at May 18, 2020, 10:40 a.m. (reply...)

Upvoting

We are also still experiencing this issue, this is so bad for UX and this issue is so old I don't understand that this is still not fixed.

By florian.monfort at May 29, 2020, 3:43 a.m. (reply...)

Upvoting

Same issue - it made sign in with magic link very difficult on our users. We were able to get a workaround using our web site and custom schemes to complete the login in the app. But, it provides a much worse experience when the links don't work as intended.

This is still active. It's preventing one of my apps from making through the review process.

By mike.caulley at April 17, 2020, 8:28 p.m. (reply...)

Upvoting

Still seeing this issue with iOS 13.3.1 on iPhone Xr

By suryakantsharmaoist at April 10, 2020, 10:47 a.m. (reply...)

This is still an issue now on physical device running iOS 13.3.1. I see in the Xcode console an error stating that:

`UserInfo={_kCFStreamErrorCodeKey=8, _kCFStreamErrorDomainKey=12}}, NSErrorFailingURLStringKey=https://firebasedynamiclinks-ipv6.googleapis.com/v1/installAttribution?key=AIzaSyCfE70N7kHMaBbDAJeO75kDJ8MS3pmcsiQ, NSErrorFailingURLKey=https://firebasedynamiclinks-ipv6.googleapis.com/v1/installAttribution?key=AIzaSyCfE70N7kHMaBbDAJeO75kDJ8MS3pmcsiQ, _kCFStreamErrorDomainKey=12, _kCFStreamErrorCodeKey=8, NSLocalizedDescription=A server with the specified hostname could not be found.}`

Which might be causing the app not to launch with Dynamic Link

By josetapizq at April 6, 2020, 10:03 p.m. (reply...)

We are also still seeing this for a small number of our users. Our app is signed and released on the app store.

We are seeing this behaviour consistently on a iPhone 6+ running iOS 12.74

Upvote

I am still seeing this on iOS 13.3 devices. It seems to affect a very little percent of our users, but we are getting reports of this happening. We are using Firebase Dynamic links and it works almost every time. We have seen this happen in testing once or twice, but we have had multiple users report not being able to sign in with an email link

Probably, the issue happens only when the app is developer ID-signed

If the user downloads your app from the App Store, the system will begin downloading apple-app-site-association files as soon as soon as your app is installed or updated. If your app is developer ID-signed, the system will not begin these downloads until the user has launched your app at least once.

Source: https://developer.apple.com/videos/play/wwdc2019/717/

Fix?

Can anyone verify this still happens on iOS13? I opened an official bug and Apple asked me to re-verify but I hadn't had time yet.

By marc.borntraeger at Oct. 2, 2019, 5:53 a.m. (reply...)

Upvoting

Same for Branch

By neverov.andrey at June 8, 2019, 12:10 a.m. (reply...)

Upvoting

Facing the same issue. I can reproduce it using low-power mode on iOS 12.1.4 and using Firebase dynamic links.

UPVOTE

bump, still seeing this with as high as iOS 12.1.1 (haven't tried higher). Using Firebase Dynamic links

any news on this? did anyone file a bug with apple?

I'm experiencing the exact same issue with my app.

By marc.borntraeger at Jan. 18, 2019, 12:13 p.m. (reply...)

Upvoting

Happening on 12.1 for classification request. approximately on 20% of test devices. Its going to affect over release.

By nameer.humam at Dec. 20, 2018, 7:37 p.m. (reply...)

Upvoting

Same issue for us on iOS 12.1 as well

By srscottrobbins at Dec. 11, 2018, 6:16 p.m. (reply...)

Upvoting

We are able to reproduce on iOS 12.0 by installing the app while in Low Power Mode and launching it for the first time while still in Low Power Mode our website's AASA endpoint is not hit at all while in low power mode, but when repeating the whole process while not on low power mode the AASA files are fetched reliably.

Upvoting

Randomly happening on iOS 12.1. Never happening to Instagram though.

IOS 12.1.1 beta is still happening.

By overeggland at Nov. 8, 2018, 4:38 a.m. (reply...)

Experiencing for users, around 30%, all on iOS12+.

By m.quinones.garcia at Nov. 6, 2018, 10:38 a.m. (reply...)

Upvoting

Still happens in iOS 12.0.1

Upvoting

I'm agree with guangyu.wangg, there's an issue from iOS 12 that is not detecting the dynamic link

Upvoting

I am experiencing something similar on iOS12+ Universal links always failed for me within 5 minutes after rebooting the phone. I put descriptions in http://www.openradar.me/45201697

By guangyu.wangg at Oct. 11, 2018, 8:10 p.m. (reply...)

Seems this issue got resolved in iOS 12.1 beta. My is working as expected in iOS 12.1 beta.

By chakri.ios at Oct. 3, 2018, 1:24 p.m. (reply...)

tjfallon , Thanks a lot for you reply on this post. May I know Apple aware about this issue. Shall we expect the fix in iOS 12.0.1 version ?

By chakri.ios at Sept. 28, 2018, 5:36 p.m. (reply...)

On iOS 12, if the device begins by attempting to load the file from "/.well-known/apple-app-site-association", the "SecRequestSharedWebCredential" function will hang for up to 15m. By hang, I mean the callback isn't called, and so our app does not continue execution. We're confirming this behavior via the swcd process logs, but don't have a work around and aren't fully clear on the STR. (Some of our apps don't have this problem, some do, same code executing.)

default 11:22:45.750840 -0700 swcd Started request for domain 'skillz.com', URL 'https://skillz.com/.well-known/apple-app-site-association'

default 11:23:26.865495 -0700 swcd Check service 'webcredentials', app ID 'NYQX9Q9R54.com.tether.bubble', domain 'skillz.com'

default 11:23:26.866431 -0700 swcd Skipping request for domain 'skillz.com' when already outstanding

default 11:29:41.864330 -0700 swcd Completing request for 'https://skillz.com/.well-known/apple-app-site-association', status 0/0x0 noErr

default 11:29:41.866381 -0700 swcd Updated app ID 'NYQX9Q9R54.com.tether.bubble', domain 'skillz.com', flags 0x0 < > -> 0x2 < SiteApproved > on check

default 11:29:42.281577 -0700 swcd Retry needed for 'skillz.com' success in 4d 23h 37s

The third line here, "Skipping request for domain 'skillz.com' when already outstanding", is logged out by swcd exactly the moment our code calls the "SecRequestSharedWebCredential" function.

It seems as if the request is being begun with low priority in some cases. We do see that once the request completes, the fourth/fifth lines in the log above, the Username/Password alert dialog is shown. At first, we assumed this was because we weren't serving the file from the /.well-known/ domain directory, but now that we are, and we see "swcd" log out a success, the issue still occurs.

We're able to reproduce this problem pretty reliably on older iPads on iOS 12, but also occurs on other devices as recent on the iPhone XS Max. This only occurs on iOS 12 so far it seems.

Universal links are working in my iOS 11.4.1 device. But when I test in another iOS 12 device it's not working. Seems it's broken again in iOS 12. Please check the following logs.

swcd(CoreUtils)[197] : Added service 'applinks', appID 'K5HKFCX9NG.com.example.test', domain 'example.test.com'

swcd(CoreUtils)[197] : Skipping request for domain 'example.test.com' when already outstanding

By chakri.ios at Sept. 27, 2018, 5:31 p.m. (reply...)

Upvoting

I am using Firebase dynamic link for Universal links , and its not working most of the time.

Upvoting

We are having the same issue, and are losing approximately 15-20% of our users due to this, at a loss for a fix.

upvoting

Still happening in iOS 11.4

Also on iOS 12

Still happening even on iOS 12 Beta 1.

Upvoting

Same issue here. With no changes, the same Universal URL works in a very unstable way.

Still exists on 11.3.1

11.3.1 still has this issue.

By mike.caulley at May 22, 2018, 1:43 p.m. (reply...)

Upvoting

Same issues with me.

By technollage at May 15, 2018, 10:14 a.m. (reply...)

Upvoting

Still happening on iOS 11.3

By gonzalogallotti at May 4, 2018, 2:48 p.m. (reply...)

Upvoting

Very much an issue.

By weisbergisaac at May 4, 2018, 4:29 a.m. (reply...)

Upvoting

This is happening for me as well. I see some requests to the AASA file in the access logs but most installs (incl. tests I do from my devices don't).

By halilkoklu at May 3, 2018, 12:16 p.m. (reply...)

Upvoting

We are also noticing this happening randomly and some customers are impacted, any ETA will be useful.

Upvoting

Hi, having the same issue here! Any ETA for the fix? Thanks!

By ramos.danielg at April 10, 2018, 7:36 p.m. (reply...)

Upvoting

Still happen on iOS 11.3 beta 6

By khanh.phamdd at March 23, 2018, 1:57 a.m. (reply...)

Upvoting

I've seen this happen with a number of apps too. I can see the AASA file intermittently fail to download after an install.

Upvoting

This is reproducible for customers on our platform, and is not resolved as of iOS 11.2.6.

Upvoting

Still seeing this intermittently after iOS 11.2.6 update ...

By mattkuhn333 at March 5, 2018, 9:22 p.m. (reply...)

Upvoting

Some developers using our SDK (appmetrica.yandex.com) are having this issue. Effect is the same and no stable factors affection the reproduction of the issue.

By lookin.alexander at Feb. 28, 2018, 4:47 p.m. (reply...)

Upvoting

This is really bad. We use Universal Links as part of our initial user experience, and it's randomly causing lots of problems for our end users.

Upvoting

Got some reports from customers. Can reproduce sometimes also.

Upvoting

This is causing big problems for us. The AASA file is not downloaded most of the time on fresh installs.

Upvoting

We believe this is happening with an app we are currently shipping upon returning from an authentication site via Safari.

By alexander.horovitz at Feb. 14, 2018, 11:15 p.m. (reply...)

Upvoting

Same for me. Very hard to reproduce as it appends randomly with my customers.

By Aurelien.Martinet at Feb. 7, 2018, 10:57 a.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!