EddyVerbruggen / cordova-plugin-touch-id

:nail_care: 👱‍♂️ Forget passwords, use a fingerprint scanner!
MIT License
214 stars 72 forks source link

iOS: Passcode instead of Biometric authentication #78

Closed idoodler closed 5 years ago

idoodler commented 5 years ago

I am experiencing issues with the biometric authentication on iOS 12.2 on my iPhone X.

I am calling verifyFingerprint but the iOS passcode dialog pops up instead of the Face ID dialog.

In the Console Application I can see a strange error:

Anyone experiencing similar issues?

idoodler commented 5 years ago

I just resolved the issue by adding the key NSFaceIDUsageDescription to the Info.plist. It looks like it is a mandatory key...

EddyVerbruggen commented 5 years ago

That's correct, but based on this, Cordova should add that automatically for you:

https://github.com/EddyVerbruggen/cordova-plugin-touch-id/blob/6c398e79364b666d7131b91d82932c4fb9349373/plugin.xml#L39-L43