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

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

Open
VojGin opened this issue Nov 20, 2019 · 9 comments
Open

Comments

@VojGin
Copy link

VojGin commented Nov 20, 2019

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

[email protected] with:
  [email protected]
  [email protected]
  [email protected]
  [email protected]

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'?>
<widget id="SECRET" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
    <name>SECRET</name>
    <description>
       SECRET
    </description>
    <author email="SECRET" href="SECRET">
        SECRET
    </author>
    <content src="index.html" />
    <plugin name="cordova-plugin-whitelist" spec="1" />
    <access origin="*" />
    <allow-intent href="http://*/*" />
    <allow-intent href="https://*/*" />
    <allow-intent href="tel:*" />
    <allow-intent href="sms:*" />
    <allow-intent href="mailto:*" />
    <allow-intent href="geo:*" />
    <allow-intent href="about:*" />
    <allow-intent href="data:*" />
    <allow-intent href="file:///*" />
    <allow-intent href="cdvfile://*" />
    <allow-navigation href="about:*" />
    <allow-navigation href="data:*" />
    <allow-navigation href="file:///*" />
    <allow-navigation href="cdvfile://*" />
    <platform name="android">
        <allow-intent href="market:*" />
    </platform>
    <platform name="ios">
        <allow-intent href="itms:*" />
        <allow-intent href="itms-apps:*" />
    </platform>

    <hook type="before_prepare" src="hooks/insert_cordova.js" />
    <hook type="before_prepare" src="hooks/parcel.js" />

    <preference name="DisallowOverscroll" value="true"/>

    <preference name="StatusBarOverlaysWebView" value="true" />
    <preference name="StatusBarStyle" value="lightcontent" />

    <preference name="ShowSplashScreenSpinner" value="false"/>
    <preference name="AutoHideSplashScreen" value="true" />

    <feature name="CDVWKWebViewEngine">
        <param name="ios-package" value="CDVWKWebViewEngine" />
    </feature>
    <preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" />
    <preference name="Allow3DTouchLinkPreview" value="false" />

    <platform name="ios">
        <preference name="APP_SECRET" value="SECRET" />
        <preference name="CodePushDeploymentKey" value="SECRET" />
        <preference name="CodePushDeploymentKey" value="SECRET-" />
    </platform>
    <platform name="android">
        <preference name="APP_SECRET" value="SECRET" />
        <preference name="CodePushDeploymentKey" value="SECRET" />
        <preference name="CodePushDeploymentKey" value="SECRET" />
    </platform>

    <platform name="ios">
        <preference name="KeyboardDisplayRequiresUserAction" value="false"/>

        <icon src="res/icon/ios/icon-1024.png" width="1024" height="1024"/>
        <icon src="res/icon/ios/icon-small.png" width="29" height="29"/>
        <icon src="res/icon/ios/[email protected]" width="58" height="58"/>
        <icon src="res/icon/ios/[email protected]" width="87" height="87"/>
        <icon src="res/icon/ios/icon-small-40.png" width="40" height="40"/>
        <icon src="res/icon/ios/[email protected]" width="80" height="80"/>
        <icon src="res/icon/ios/[email protected]" width="120" height="120"/>
        <icon src="res/icon/ios/icon-small-50.png" width="50" height="50"/>
        <icon src="res/icon/ios/[email protected]" width="100" height="100"/>
        <icon src="res/icon/ios/icon.png" width="57" height="57"/>
        <icon src="res/icon/ios/[email protected]" width="114" height="114"/>
        <icon src="res/icon/ios/icon-60.png" width="60" height="60"/>
        <icon src="res/icon/ios/[email protected]" width="120" height="120"/>
        <icon src="res/icon/ios/[email protected]" width="180" height="180"/>
        <icon src="res/icon/ios/icon-72.png" width="72" height="72"/>
        <icon src="res/icon/ios/[email protected]" width="144" height="144"/>
        <icon src="res/icon/ios/icon-76.png" width="76" height="76"/>
        <icon src="res/icon/ios/[email protected]" width="152" height="152"/>
        <icon src="res/icon/ios/icon-167.png" width="167" height="167"/>
        <icon src="res/icon/ios/[email protected]" width="167" height="167"/>

        <!-- Storyboard portrait -->
        <splash src="res/screen/ios/Default@2x~iphone~anyany.png"/>
        <splash src="res/screen/ios/Default@2x~iphone~comany.png"/>
        <splash src="res/screen/ios/Default@3x~iphone~anyany.png"/>
        <splash src="res/screen/ios/Default@3x~iphone~comany.png"/>
        <splash src="res/screen/ios/Default@2x~ipad~anyany.png"/>
        <splash src="res/screen/ios/Default@2x~ipad~comany.png"/>

        <!-- Storyboard landscape -->
        <splash src="res/screen/ios/Default@2x~iphone~comcom.png"/>
        <splash src="res/screen/ios/Default@3x~iphone~anycom.png"/>

        <!-- Legacy portrait -->
        <splash src="res/screen/ios/Default~iphone.png" width="320" height="480"/>
        <splash src="res/screen/ios/Default@2x~iphone.png" width="640" height="960"/>
        <splash src="res/screen/ios/Default-Portrait~ipad.png" width="768" height="1024"/>
        <splash src="res/screen/ios/Default-Portrait@2x~ipad.png" width="1536" height="2048"/>
        <splash src="res/screen/ios/Default-568h@2x~iphone.png" width="640" height="1136"/>
        <splash src="res/screen/ios/Default-667h.png" width="750" height="1334"/>
        <splash src="res/screen/ios/Default-736h.png" width="1242" height="2208"/>

        <!-- Legacy landscape -->
        <splash src="res/screen/ios/Default-Landscape~ipad.png" width="1024" height="768"/>
        <splash src="res/screen/ios/Default-Landscape@2x~ipad.png" width="2048" height="1536"/>
    </platform>

    <platform name="android">
        <preference name="SplashMaintainAspectRatio" value="true"/>
        <preference name="SplashShowOnlyFirstTime" value="true"/>

        <icon density="ldpi" src="res/icon/android/ldpi.png"/>
        <icon density="mdpi" src="res/icon/android/mdpi.png"/>
        <icon density="hdpi" src="res/icon/android/hdpi.png"/>
        <icon density="xhdpi" src="res/icon/android/xhdpi.png"/>
        <icon density="xxhdpi" src="res/icon/android/xxhdpi.png"/>
        <icon density="xxxhdpi" src="res/icon/android/xxxhdpi.png"/>

        <!-- Portrait -->
        <splash density="port-ldpi" src="res/screen/android/splash-port-ldpi.png"/>
        <splash density="port-mdpi" src="res/screen/android/splash-port-mdpi.png"/>
        <splash density="port-hdpi" src="res/screen/android/splash-port-hdpi.png"/>
        <splash density="port-xhdpi" src="res/screen/android/splash-port-xhdpi.png"/>
        <splash density="port-xxhdpi" src="res/screen/android/splash-port-xxhdpi.png"/>
        <splash density="port-xxxhdpi" src="res/screen/android/splash-port-xxxhdpi.png"/>

        <!-- Landscape -->
        <splash density="land-ldpi" src="res/screen/android/splash-land-ldpi.png"/>
        <splash density="land-mdpi" src="res/screen/android/splash-land-mdpi.png"/>
        <splash density="land-hdpi" src="res/screen/android/splash-land-hdpi.png"/>
        <splash density="land-xhdpi" src="res/screen/android/splash-land-xhdpi.png"/>
        <splash density="land-xxhdpi" src="res/screen/android/splash-land-xxhdpi.png"/>
        <splash density="land-xxxhdpi" src="res/screen/android/splash-land-xxxhdpi.png"/>
    </platform>
</widget>

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
@VojGin VojGin added the bug label Nov 20, 2019
@l3ender
Copy link

l3ender commented Jan 17, 2020

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

@exxbrain exxbrain added duplicate and removed bug labels Jan 17, 2020
@exxbrain
Copy link
Collaborator

exxbrain commented Jan 17, 2020

Duplicate of #204

@exxbrain exxbrain marked this as a duplicate of #204 Jan 17, 2020
@hydrococcous
Copy link

hydrococcous commented Mar 24, 2020

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 ([email protected])
 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
Copy link
Contributor

Having the same issue on Xiaomi Mi A3

@NiklasMerz
Copy link
Owner

Please checkout the latest version and the discussion #303

@bhargavas12
Copy link

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

@chrisnelson
Copy link

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
Copy link

Is there any solution for this?

1 similar comment
@banushanv
Copy link

Is there any solution for this?

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

No branches or pull requests

10 participants