EddyVerbruggen / nativescript-fingerprint-auth

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

iOS face-id fails in simulator #21

Closed erjdriver closed 6 years ago

erjdriver commented 6 years ago

I've got an iPhone X simulator and when running code verifyFingerprint() fails immediately.

I've enrolled the simulator for face-id - available() results returns true for .any and .face.

I've added the NSFaceIDUsageDescription entry to plist file.

When verifyFingerprint() is called, the promise calls the 2nd reject function.

My code is exactly the same as in the demo code.

erjdriver commented 6 years ago

Looks like the method verifyFingerprintWithCustomFallback() needs to be called for face-id.