EddyVerbruggen / nativescript-fingerprint-auth

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

Resume Event when any Biometrics are passing #88

Open shaltie opened 3 years ago

shaltie commented 3 years ago

Hello. I found that when FaceID (or any android analogs) is running, the Application.on(Application.resumeEvent, args => {}) is calling. If it is a normal behavior, so how to ask FaceID on resume?

Also each iteration increases number of calling ResumeEvent.

What I have now is:

  1. Open app
  2. ResumeEvent calls FingerprintAuth.verifyFingerprint()
  3. FingerprintAuth.verifyFingerprint() calls ResumeEvent twice
  4. ResumeEvent calls FingerprintAuth.verifyFingerprint()
  5. ResumeEvent calls FingerprintAuth.verifyFingerprint()
  6. FingerprintAuth.verifyFingerprint() calls ResumeEvent tree times
  7. ResumeEvent calls FingerprintAuth.verifyFingerprint()
    1. ResumeEvent calls FingerprintAuth.verifyFingerprint()
    1. ResumeEvent calls FingerprintAuth.verifyFingerprint()
  8. ...

Please give me any advice. Thanx!

DiegoMacBD commented 3 years ago

@shaltie were you able to solve this?