hieuvp/react-native-fingerprint-scanner

java.lang.IllegalArgumentException in Android

Opened this issue · 0 comments

Hey there!
We had this crash for along time.
Recently updated to the 6.0.0 but the crash is still happening for our users. Unfortunately we can't reproduce it on our devices...

java.lang.IllegalArgumentException: 
  at androidx.biometric.BiometricPrompt.<init> (BiometricPrompt.java:584)
  at com.hieuvp.fingerprint.ReactNativeFingerprintScannerModule.getBiometricPrompt (ReactNativeFingerprintScannerModule.java:109)
  at com.hieuvp.fingerprint.ReactNativeFingerprintScannerModule$1.run (ReactNativeFingerprintScannerModule.java:123)
  at android.os.Handler.handleCallback (Handler.java:900)
  at android.os.Handler.dispatchMessage (Handler.java:103)
  at android.os.Looper.loop (Looper.java:219)
  at android.app.ActivityThread.main (ActivityThread.java:8387)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:513)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1055)

Yeah, I know there is a #137
But that is fixed in 6.0.0, right?

How to fix this anyway?