Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error after upgrading on 2.1.0 #82

Open
alexschled opened this issue Oct 31, 2023 · 1 comment
Open

Error after upgrading on 2.1.0 #82

alexschled opened this issue Oct 31, 2023 · 1 comment

Comments

@alexschled
Copy link

Hello,

after upgrading from 2.0.1 to 2.1.0 I get following error while using the fingerprint sensor:

java.lang.IllegalArgumentException: Crypto-based authentication is not supported for Class 2 (Weak) biometrics. at androidx.biometric.BiometricPrompt.authenticate(BiometricPrompt.java:946) at co.infinum.goldfinger.GoldfingerImpl$3.run(GoldfingerImpl.java:251) at android.os.Handler.handleCallback(Handler.java:958) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:205) at android.os.Looper.loop(Looper.java:294) at android.app.ActivityThread.main(ActivityThread.java:8177) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)

Can you help me to solve this?

I tried to add the AllowedAuthenticators(BiometricManager.Authenticators.BIOMETRIC_WEAK), but getting the same error

Thank you guys

@spasepremcheski
Copy link
Contributor

Hello @alexschled,
In the 2.1.0 release the BiometricManager.Authenticators.BIOMETRIC_WEAK authenticator is added by default if any other authenticators aren't specified.
The issue appears when trying to use Crypto based authentication together with BIOMETRIC_WEAK authenticator which is not allowed by Google. Instead you should use BIOMETRIC_STRONG authenticator that is supported on a device.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants