I'm busy implementing passkeys but I'm encountering an issue with the autofill feature.
According to the WWDC video (https://developer.apple.com/videos/play/wwdc2022/10092/ at around 14:30), when the user taps the "key icon" in the quick type bar, the user is presented with a prompt to choose a passkey or password to login, and (very important!) also the ability to "Use Passkey from a Nearby Device...".
Correct modal that I want to show
However, my app (and most others) only gives the user the ability to choose a password.
Incorrect modal that currently gets shown
How can I get my app to show the first modal (that includes passkeys)?
- Associated domains is correctly setup
- The correct
textContentType
is set on both the username and password fields - ASAuthorisation is correctly implemented as per the WWDC video
- I've tried
performRequests()
as well asperformAutoFillAssistedRequests()
, didn't make a difference - I've tried removing the password field, and only showing the username field - no difference
- Tested on iOS 16.3 and 16.4 - no difference