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?
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)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With