Hi there!
I'm using PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable
to detect whether a platform authenticator is available in order to prompt to register it. On iOS 16 it resolves to true
even when FaceID and passcode are turned off in system settings. In this case, when navigator.credentials.create
is called with "authenticatorAttachment"
set to "platform",
it immediately fails with the following error, without showing any UI
{
code: 0,
message: "This request has been cancelled by the user.",
name: "NotAllowedError"
}
To me, one of these functions does not work correctly, so I am wondering which one is it?
I assume that on iOS 16 PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable
resolves to true
because it should be possible to register a passkey on another device. But in that case navigator.credentials.create
would suggest to do that instead of failing, right?
Thanks in advance for any help.