EddyVerbruggen / nativescript-fingerprint-auth

:nail_care: 👱‍♂️ Forget passwords, use a fingerprint scanner or facial recognition!
MIT License
134 stars 33 forks source link

Face recognition is ON but shows `undefined` ( android). #20

Closed RoyiNamir closed 6 years ago

RoyiNamir commented 6 years ago

I'm checking the available object :

  this._fingerPrintService.isFingerPrintAvilable().then(f=>console.log(JSON.stringify(f)));

Where the service is actually :

    isFingerPrintAvilable(): Promise<BiometricIDAvailableResult>
    {

        return this.fingerprintAuth.available().then((result: BiometricIDAvailableResult) =>
                                                    {
                                                        console.log(`Biometric ID available? ${result.any}`);
                                                        console.log(`Touch? ${result.touch}`);
                                                        console.log(`Face? ${result.face}`);
                                                        return result;
                                                    });
    }

Result :

JS: Biometric ID available? true
JS: Touch? true
JS: Face? **undefined**

Why is that ?

As you can see - I do have facere cognition on:

image

But all it shows me is this menu :

image

Question

Why doesn't it allow me to be recognized via face ?

(it does recognize me via fingerprint & pattern) - I have galaxy s8+

BTW - when I lock the phone it does show me that I can use face :

image

EddyVerbruggen commented 6 years ago

Because face detection has not yet been implemented in this plugin for Android.