EddyVerbruggen / nativescript-fingerprint-auth

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

CustomUI for android does not trigger on keyboard enter #57

Open bbroereES opened 5 years ago

bbroereES commented 5 years ago

Using the plugin (7.0.1) on Nativescript angular (5.4.0) with custom android UI: When the user chooses to use pin instead of fingerprint, enters the pincode and does not press 'OK' in the dialog but the enter key on the keyboard, the dialog gets closed but the callback of verifyFingerprint is never called.

larxenne commented 4 years ago

I have the exact same issue, did you find any solution ?

bbroereES commented 4 years ago

Yes, I did :) See this feature request:

This can be achieved by setting the use_password string in strings.xml to empty. The button to cancel will not be shown. Request to update readme to inform others.

larxenne commented 4 years ago

I tried it, but this remove the cancel button. If I chose the password option and then use the enter key on the keyboard instead of the 'Ok' button, the callback is still not triggered.

bbroereES commented 4 years ago

Could reproduce, don't see an immediate fix though... For me the solution was to just remove the fallback option, but you are right, the callback is not triggered.

larxenne commented 4 years ago

Yes, actually with the 'Cancel' button, you fallback in the catch. The enter key is not triggering anything.

That's sad, i cannot use the customandroidui, I guess i l use the basic one