EddyVerbruggen / nativescript-fingerprint-auth

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

nativescript-fingerprint-auth 5.0.0 reset Object #18

Closed Vishnu0306 closed 6 years ago

Vishnu0306 commented 6 years ago

We are using "nativescript-fingerprint-auth" library 5.0.0 version, i have tried invalid fingerprint for first and second times showing "Try Again" popup message, For third time library was return -1 error code, Even i continue invalid fingerprint for 4th and 5th time it was show "Try Again" popup. Again i tried for 6th time library was return -8, even i tried 7th time library return "undefined". Then after when i try invalid fingerprint its always return "undefined".

We need after tried third times reset fingerprint object.

PFB code here i have initialized fingerprint object on two place.

constructor( ) { this.fingerprintAuth = new FingerprintAuth(); } this.fingerprintAuth.available().then((avail: any) => { if (avail) { this.fingerprintAuth.verifyFingerprintWithCustomFallback({ message: "Scan your finger", fallbackMessage: "Decline" }).then( () => {}, (error) => { if (error.code === -1 ) { this.fingerprintAuth = new FingerprintAuth(); } } } }

Tested Device : iphone 6.

EddyVerbruggen commented 6 years ago

I don't understand the question, can you please reopen with a little video?