iOS 27: domain-bound SMS one-time … | Apple Developer Forums
iOS 27: domain-bound SMS one-time codes are not offered in an associated app ("Could not fetch application record"), worked on iOS 26.6 and 18 App & System Services General Autofill WebKit iOS You’re now watching this thread. If you’ve opted in to email or web notifications, you’ll be notified when there’s activity. Click again to stop watching or visit your profile to manage watched threads and notifications.
You’ve stopped watching this thread and will no longer receive emails or web notifications when there’s activity. Click again to start watching. richardpavlikan OP Created 4w Replies 8 Boosts 3 Views 993 Participants 5 Since iOS 27.0, domain-bound SMS one-time codes are no longer offered above the keyboard in our app, where the code is entered on a web page in a WKWebView , although the app is associated with the domain through webcredentials .
The same SMS is offered in Safari on the same device, and it is offered in our app on iOS 26.6 and iOS 18. SMS format (last line per the domain-bound code format): Your verification code is: 123456 @app.example.com #123456 Setup Several builds of the same app with different bundle IDs (App Store, internal, development), all under one team Entitlement com.apple.developer.associated-domains : webcredentials:app.example.com (plus two more environments of the same domain) AASA at https://app.example.com/.well-known/apple-app-site-association : 200, application/json , no redirect, same content on app-site-association.cdn-apple.com : { "webcredentials" :{ "apps" :[ "TEAMID.com.example.app" , "TEAMID.com.example.app.internal" , "TEAMID.com.example.app.dev" ]}} The code field is an <input type="tel" autocomplete="one-time-code"> in a WKWebView showing a page on that domain.
We also tested a native field with the one-time-code content type (the app is built with Flutter; the field is a Flutter TextField with the one-time-code autofill hint). Steps Open the verification page in the app and focus the code field. Receive the SMS above. Expected: the code is offered in the QuickType bar, as it is in Safari on the same domain and as it is in our app on iOS 26.6 and iOS 18. Actual: nothing is offered.
The keyboard log: kbd Received verification code from Messages kbd One Time Code field has been entered. kbd Retrieving Current One-Time Codes for App kbd Current verification code is domain-bound to < mask .hash : '…' > . kbd Domain-bound verification code is NOT valid for app < mask .hash : 'X' > . E kbd Could not fetch application record for application identifier: < mask .hash : 'X' > . kbd Returning 0 available one-time codes What we checked swcd downloads the AASA for all domains without errors after a reinstall.
The installed app's entitlements (read from the device) contain the expected application-identifier and associated domains; the profile is validated. The failure is the same in the WKWebView field and in a native one-time-code field, in the App Store build, a distribution-signed internal build and a development build, and in an older app version that used to work. The masked application identifier in the log ( X above) is the same for two builds with different bundle IDs , so the lookup does not seem to use the app's bundle ID.
All our builds share CFBundleExecutable = Runner (the Flutter default) and the same CFBundleName . The same app build and the same SMS work on iOS 26.6 and iOS 18.x, so the change happened between iOS 26.6 and 27.0. An SMS without the @domain #code line is offered in the app on iOS 27 ( Returning 1 available one-time code ), although Could not fetch application record is still logged. Questions Is this a known iOS 27 regression, or is there a new requirement for apps to receive domain-bound codes?
What application identifier does the keyboard use for this lookup, and can anything in the app's configuration (for example the executable name) affect it? Device: iPhone 17 Pro Max, iOS 27.0 Replies 8 Boosts 3 Views 993 Participants 5 DTS Engineer OP Apple 4w Thanks for the post this is very interesting. Starting with the error Could not fetch application record suggest standard SMS codes do not require this strict entitlement validation to work to the active foreground app, which explains why standard codes still work for you despite the lookup error being logged?
The app looks like you are using Flutter so I can’t comment about the autofill and how that work in that 3rd party tool. The subsystem might be incorrectly hashing a shared attribute like CFBundleExecutable (which defaults to "Runner" in Flutter) or CFBundleName instead of the actual Bundle ID. I don’t see anything wrong about your AASA file, the structure properly uses the webcredentials dictionary containing an apps array, and the app identifiers are correctly formatted using the required <TeamID>.<BundleID> convention.
Even though you didn’t provide the link to the file, I’m guessing is synced to the CDN servers? Albert WWDR Add comment richardpavlikan OP 3w Thanks, Albert. CDN: yes, the AASA is on the CDN. https://app-site-association.cdn-apple.com/a/v1/app.example.com returns the same JSON as the domain, and after installation swcd approves the webcredentials entry for that domain. Flutter: to rule it out, we built a minimal native app and tested it on the same iPhone (iOS 27.0): new Xcode project, SwiftUI, no third-party code the bundle ID of our development build, signed with the team's development profile entitlement webcredentials:app.example.com a UITextField with textContentType = .oneTimeCode a WKWebView with <input autocomplete="one-time-code"> on a page whose origin is https://app.example.com SMS sent from another phone: Your verification code is: 123456 @app.example.com #123456 The code is not offered in either field .
Keyboard log for the native UITextField : kbd Received verification code from Messages kbd Current verification code is domain-bound to < mask .hash : 'D' > . kbd Checking domain against associated domains for app < mask .hash : 'A' > . kbd Domain-bound verification code is NOT valid for app < mask .hash : 'A' > . kbd Returning 0 available one-time codes The WKWebView field logs the same lines, plus Could not fetch application record for application identifier: <mask.hash: 'A'> before the domain check.
So the lookup error is not the cause: the native field has no lookup error, and the domain check still fails. Executable name: we built the same native app again with PRODUCT_NAME = Runner (so CFBundleExecutable = Runner ) and changed nothing else. It fails the same way, and the masked application identifier is identical to the first build's. So the identifier does not come from the executable name. Summary: on iOS 27.0, a native app without third-party code, whose webcredentials association swcd has approved, is not offered a domain-bound SMS code for that domain.
This happens in a native field and in a WKWebView . The same SMS is offered in Safari on the same device, and the same setup worked on iOS 26.6 and iOS 18. Why the SMS carries the domain: we add the @app.example.com #123456 line on purpose, to follow the origin-bound one-time code format (also used by the WebOTP API). It lets browsers and associated apps fill the code, and only on the right domain, which protects against phishing.
Dropping the line makes the code appear in our app again on iOS 27, but it also drops that binding to the domain. We would rather keep the standard format and have it work in the associated app, as it did before iOS 27. Can you confirm whether this is a regression in iOS 27, or a new requirement that apps have to meet? Add comment DTS Engineer OP Apple 3w Thanks for your reply, I don't think you gave me the correct link to your AASA file as returns a 404 missing file: curl -v https://app-site-association.cdn-apple.com/a/v1/app.example.com * Host app-site-association.cdn-apple.com:443 was resolved. * IPv6 : 2620:149:a21:f000::196, 2620:149:a21:f000::135, 2620:149:a00:0:17:253:253:7, 2620
The rest of this page is on the live site.