Android BiometricPrompt.Builder.authenticate() not showing any dialog
you need to check a few things in order to work with Biometric Prompt :
1- the running android version should be Pie or above
public static boolean isBiometricPromptEnabled() {
return (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P);
}
2- the hardware should be available
public static boolean isHardwareSupported(Context context) {
FingerprintManagerCompat fingerprintManager = FingerprintManagerCompat.from(context);
return fingerprintManager.isHardwareDetected();
}
3- the use must have enrolled at least 1 finger print in the settings
private static boolean isFingerprintAvailable(Context context) {
FingerprintManagerCompat fingerprintManager = FingerprintManagerCompat.from(context);
return fingerprintManager.hasEnrolledFingerprints();
}