isPrfSupportedPlatform

Android implementation of PRF support check.

PRF extension is supported on Android 14+ (API 34+) with compatible authenticators. Most modern Android devices with biometric hardware support PRF when running Android 14 or later.

Note: This checks the OS version, not authenticator capabilities. The actual PRF support also depends on the authenticator (Google Password Manager, Samsung Pass, etc.). If the authenticator doesn't support PRF, the authentication request will fail at runtime.

Check if the current platform supports WebAuthn PRF extension.

PRF (Pseudo-Random Function) extension allows deriving deterministic secrets from passkeys for use cases like backup encryption.

Platform requirements:

  • Android: Android 14+ (API 34+) with PRF-capable authenticator

  • iOS: iOS 18+ with iCloud Keychain passkeys

This function is used by Flutter UI to conditionally show the Passkey option in credential selection screens. On unsupported platforms, users only see PIN/Password options.

Return

true if PRF is supported on this platform, false otherwise