mjwheatley / cordova-plugin-android-fingerprint-auth

A cordova plugin for fingerprint authentication using the hardware fingerprint scanner on devices running Android 6+
Apache License 2.0
169 stars 131 forks source link

Add support for newer android sdk's (starting from sdk 28). #158

Open JJoestar2 opened 1 year ago

JJoestar2 commented 1 year ago

Hello @mjwheatley.

If you able, please check this issue.

Starting from (SDK 28) and higher versions of android sdk's, the FingerprintManager is deprecated in the biometric module. Example: If you try to use FingerprintAuth.decrypt method on newer android versions you will get INIT_CIPHER_FAILED error because of FingerprintManager.CryptoObject is deprecated. You can reproduce it on Android SDK 28 and higher.

See

https://developer.android.com/training/sign-in/biometric-auth#java https://developer.android.com/reference/android/hardware/fingerprint/FingerprintManager