Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

BiometricPromptCompat is missing [duplicate]

Android P introduced changes to the Biometrics API.
Now we should use BiometricPrompt class to integrate biometric authentication in our apps (FingerprintManager is deprecated).

The issue is that this class is only available on API 28.

Biometrics documentation says:

A support library is also provided for devices running Android O and earlier, allowing applications to utilize the advantages of this API across more devices .

But I can't find that support library.
Does it exist? Or will be added in future implementations?

like image 344
Juan Cruz Soler Avatar asked Dec 13 '22 15:12

Juan Cruz Soler


1 Answers

I think at the time of your question, it was missing. 1.0.0-alpha01 was released in September. Latest version as of now is 1.0.0-alpha02.
Add this to your build.gradle:

implementation 'androidx.biometric:biometric:1.0.0-alpha02'

(Maven Repository)

like image 168
JayShortway Avatar answered Dec 26 '22 23:12

JayShortway