So I have app lock on my app that uses the devices lock method - I use Biometrics 1.0.1 which support all android versions, however on KitKat when I press unlock, it shows tihs toast:
authentication error: This device does not have a fingerprint sensor.
Even though I use .setDeviceCredentialAllowed(true) which should use devices PIN or pattern if no fingerprint is available.
keyguardManager.isKeyguardSecure returns true
promptInfo = BiometricPrompt.PromptInfo.Builder()
.setTitle("Biometric login for my app")
.setSubtitle("Log in using your biometric credential")
.setDeviceCredentialAllowed(true)
.build()
// Prompt appears when user clicks "Unlock".
val biometricLoginButton = unlock_button
biometricLoginButton.setOnClickListener {
biometricPrompt.authenticate(promptInfo)
}