Closed Sartxi closed 4 years ago
@Sartxi , did you add:
add(BiometricAuth.class);
to init
on MainActivity?
I added this this sentence on MainActivity but the method verify does not work.
verify method send data to Android but capacitor does not return any response
Adding these lines to the MainActivity file fixed it for me!
import com.ahm.capacitor.biometric.BiometricAuth;
and to the init()
add(BiometricAuth.class);
Thanks @arielhernandezmusa
I added this this sentence on MainActivity but the method verify does not work.
verify method send data to Android but capacitor does not return any response
I am actually seeing this problem too
I added the necessary permissions to AndroidManifest.xml
<uses-feature android:name="android.hardware.fingerprint" android:required="true" />
<uses-permission android:name="android.permission.USE_BIOMETRIC" />
<uses-permission android:name="android.permission.USE_FINGERPRINT" />
and enabled fingerprinting on the device, then tested it, worked fine for me.
iOS worked great but when I built and installed for Android
.isAvailable
was triggering a type error. So I console logged BiometricAuth and it came backundefined
.