The app that I am working on right now only supports fingerprint authentication but in android 9(pie) the user is asked to select a default biometric preference for all its app. SO if the user selects face_id as a default authentication preference then he would not be able to log into the application. So I just need a way to figure out whats the default biometrics preference of the user so that if the user has selected some other biometric preference rather than fingerprint I can pop up a dialogue at the app startup and ask the user to change its preference.
I am using the new BiometricPrompt API but couldn't find any class or package that gives the default selected biometric preference of the user.