infinum / Android-Goldfinger

Android library to simplify Biometric authentication implementation.
Apache License 2.0
654 stars 76 forks source link

Getting Fingerprint without Prompt Window #75

Open waqas-334 opened 2 years ago

waqas-334 commented 2 years ago

Hey, I am using your library and it is very helpful. However, I was wondering if we can take the user fingerprint without prompting through a bottom sheet. Actually, I am building a vault that is disguised as a calculator, and when the user enables Fingerprint I don't want the app to show a prompt, just read the fingerprint in the background and valid then navigate to vault activity. But your library only reads via prompt. Please let me know if there is any possibility of achieving that.

Thank you

Aksi0m commented 2 years ago

Hey @waqas-334 ,

unfortunately the thing you want to achieve is not possible with the new biometric API from google. It also hardly depends on the device manufacturer but you will in all cases have some kind of system dialog/bottom sheet on the screen for biometric input. You can achieve what you want with using the old fingerprint manager API, but it is deprecated and I would not recommend it.