2

I want to know if in the onAuthenticationSucceeded() method it was possible to check which Biometric authentication method the user used. Not only if it was a weak or strong method but if they used facial recognition or fingerprint for example.

Here is my code:

    Executor executor = ContextCompat.getMainExecutor(context);
    BiometricPrompt biometricPrompt;
    BiometricPrompt.PromptInfo promptInfo;
    biometricPrompt = new BiometricPrompt(fragmentActivity, executor, new BiometricPrompt.AuthenticationCallback() {
        @Override
        public void onAuthenticationError(int errorCode, @NonNull CharSequence errString) {
            super.onAuthenticationError(errorCode, errString);          
        }

        @Override
        public void onAuthenticationSucceeded(@NonNull BiometricPrompt.AuthenticationResult result) {
            System.out.println(result);
        }

        @Override
        public void onAuthenticationFailed() {
            super.onAuthenticationFailed();
        }
    });
Jason Aller
  • 3,541
  • 28
  • 38
  • 38
Axel
  • 43
  • 6
  • 1
    Unfortunately not (as far as I am aware). I filed [an issue](https://issuetracker.google.com/issues/111315641) about this years ago, but nothing seems to have come out of it so far. – Michael Mar 09 '22 at 17:05
  • Ok, thank you, I will try to do it anyway, if I find a solution, I can post it here if anybody need it. – Axel Mar 10 '22 at 08:12

0 Answers0