NiklasMerz / cordova-plugin-fingerprint-aio

Cordova Plugin for fingerprint sensors (and FaceID) with Android and iOS support
https://www.npmjs.com/package/cordova-plugin-fingerprint-aio
MIT License
323 stars 188 forks source link

Receiving BIOMETRIC_NOT_ENROLLED even though having FACE ID setup on Android #208

Open VojGin opened 5 years ago

VojGin commented 5 years ago

Bug report

Description

Receiving -106 - BIOMETRIC_NOT_ENROLLED error on Android with face recognition biometric setup.

2019-11-20 14 05 43

Works fine for device with fingerprint enabled.

photo_2019-11-20 14 07 23

Environment

Environment: OS: darwin Node: v12.8.0 npm: 6.13.1

Plugins: code-push com-sarriaroman-photoviewer cordova-open-native-settings cordova-plugin-add-swift-support cordova-plugin-appcenter-analytics cordova-plugin-appcenter-shared cordova-plugin-code-push cordova-plugin-compat cordova-plugin-crosswalk-webview cordova-plugin-device cordova-plugin-dialogs cordova-plugin-document-viewer cordova-plugin-file cordova-plugin-file-opener2 cordova-plugin-file-transfer cordova-plugin-fingerprint-aio cordova-plugin-inappbrowser cordova-plugin-keyboard cordova-plugin-network-information cordova-plugin-printer cordova-plugin-splashscreen cordova-plugin-statusbar cordova-plugin-whitelist cordova-plugin-wkwebview-engine cordova-plugin-x-socialsharing cordova-plugin-zip es6-promise-plugin

Android platform:


The "android" command is deprecated. For manual SDK, AVD, and project management, please use Android Studio. For command-line tools, use tools/bin/sdkmanager and tools/bin/avdmanager


Running /usr/local/Cellar/android-sdk/24.4.1_1/tools/bin/avdmanager list target

Available Android targets:==============] 100% Fetch remote repository...

id: 1 or "android-28" Name: Android API 28 Type: Platform API level: 28 Revision: 6

id: 2 or "android-29" Name: Android API 29 Type: Platform API level: 29 Revision: 3

iOS platform: Xcode 11.2.1 Build version 11B500

config.xml <<EOF <?xml version='1.0' encoding='utf-8'?>

SECRET SECRET SECRET

EOF

package.json <<EOF { "devDependencies": { "cordova-plugin-whitelist": "^1.3.4", "express": "^4.17.1", "parcel-bundler": "^1.12.4" }, "cordova": { "plugins": { "cordova-plugin-whitelist": {}, "cordova-plugin-splashscreen": {}, "cordova-plugin-network-information": {}, "cordova-plugin-dialogs": {}, "cordova-plugin-device": {}, "cordova-plugin-statusbar": {}, "cordova-plugin-wkwebview-engine": {}, "cordova-open-native-settings": {}, "cordova-plugin-code-push": {}, "cordova-plugin-file": {}, "cordova-plugin-file-transfer": {}, "cordova-plugin-zip": {}, "cordova-plugin-appcenter-analytics": {}, "cordova-plugin-inappbrowser": {}, "cordova-plugin-add-swift-support": {}, "cordova-plugin-keyboard": {}, "cordova-plugin-x-socialsharing": { "ANDROID_SUPPORT_V4_VERSION": "24.1.1+", "PHOTO_LIBRARY_ADD_USAGE_DESCRIPTION": "This app requires photo library access to function properly.", "PHOTO_LIBRARY_USAGE_DESCRIPTION": "This app requires photo library access to function properly." }, "cordova-plugin-printer": { "ANDROID_SUPPORT_V4_VERSION": "28.+" }, "cordova-plugin-document-viewer": {}, "com-sarriaroman-photoviewer": {}, "cordova-plugin-file-opener2": { "ANDROID_SUPPORT_V4_VERSION": "27.+" }, "cordova-plugin-fingerprint-aio": { "FACEID_USAGE_DESCRIPTION": "Login using biometrics" } }, "platforms": [ "ios", "android", "browser" ] }, "dependencies": { "code-push": "^3.0.1", "com-sarriaroman-photoviewer": "^1.2.4", "cordova-android": "8.0.0", "cordova-browser": "6.0.0", "cordova-ios": "5.0.1", "cordova-open-native-settings": "1.5.2", "cordova-plugin-appcenter-analytics": "^0.4.1", "cordova-plugin-appcenter-shared": "^0.4.1", "cordova-plugin-code-push": "^1.12.0", "cordova-plugin-compat": "^1.2.0", "cordova-plugin-device": "^2.0.3", "cordova-plugin-dialogs": "^2.0.2", "cordova-plugin-document-viewer": "^0.9.13", "cordova-plugin-file": "^4.3.3", "cordova-plugin-file-opener2": "^2.2.1", "cordova-plugin-file-transfer": "^1.7.1", "cordova-plugin-fingerprint-aio": "^3.0.0", "cordova-plugin-inappbrowser": "^3.1.0", "cordova-plugin-keyboard": "^1.2.0", "cordova-plugin-network-information": "^2.0.2", "cordova-plugin-printer": "^0.8.0", "cordova-plugin-splashscreen": "^5.0.3", "cordova-plugin-statusbar": "2.4.3", "cordova-plugin-wkwebview-engine": "^1.2.1", "cordova-plugin-x-socialsharing": "^5.6.2", "cordova-plugin-zip": "^3.1.0", "es6-promise-plugin": "^4.2.2", "js-sha256": "^0.9.0", "node-rsa": "^1.0.6", "web": "0.0.2" } } EOF

* ```cordova platform ls```

Installed platforms: android 8.0.0 browser 6.0.0 ios 5.0.1 Available platforms: electron ^1.0.0 osx ^5.0.0 windows ^7.0.0

l3ender commented 4 years ago

Is this a general bug for the plugin not yet supporting Android face unlock?

exxbrain commented 4 years ago

Duplicate of #204

hydrococcous commented 4 years ago

I have a similar constellation. No Fingerprint but FaceId is activated on Android 9. I get back "BIOMETRIC_NOT_ENROLLED" as an error. Is there already a solution for this?

ionic info:

Ionic:

 Ionic CLI                     : 5.4.6 (C:\Users\s.birke\.npm-packages\node_modules\ionic)
 Ionic Framework               : @ionic/angular 4.11.1
 @angular-devkit/build-angular : 0.12.4
 @angular-devkit/schematics    : 7.2.4
 @angular/cli                  : 7.2.4
 @ionic/angular-toolkit        : 1.3.0

Cordova:

 Cordova CLI       : 8.1.1 (cordova-lib@8.1.0)
 Cordova Platforms : android 8.1.0
 Cordova Plugins   : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 4.0.1, (and 18 other plugins)

Utility:

 cordova-res : 0.7.0
 native-run  : 0.2.8

System:

 Android SDK Tools : 26.1.1 (C:\Users\s.birke\AppData\Local\Android\sdk)
 NodeJS            : v10.16.0 (C:\Program Files\nodejs\node.exe)
 npm               : 6.9.0
 OS                : Windows 10
dmitry-salnikov commented 4 years ago

Having the same issue on Xiaomi Mi A3

NiklasMerz commented 3 years ago

Please checkout the latest version and the discussion https://github.com/NiklasMerz/cordova-plugin-fingerprint-aio/discussions/303

bhargavas12 commented 3 years ago

Is this still open ? I enabled faceid (and removed fingerprint) on android device but still getting BIOMETRIC_NOT_ENROLLED error. Any suggestions?

chrisnelson commented 3 years ago

Just to give more information, Face ID only works great in Android 11 on a Samsung S20. So this likely is an issue with Android 10 or 9. Not a lot of people are indicating what phone and OS version they are running to help pin point where the issue exists.

fathanyr commented 3 years ago

Is there any solution for this?

banushanv commented 5 months ago

Is there any solution for this?