Giter Club home page Giter Club logo

Comments (4)

mjwheatley avatar mjwheatley commented on August 27, 2024 1

published v0.0.13 to address this issue.
Plugin now returns error "Too many attempts. Try again later." if disableBackup is set to true.
Also added parameter maxAttempts to set number of failed attempts to fewer than 5 attempts.

from cordova-plugin-android-fingerprint-auth.

mjwheatley avatar mjwheatley commented on August 27, 2024

I don't know if this is consistent across all device manufacturers, but the max number of attempts is 5 failed attempts. When this happens an error is thrown and onError() gets called. From there I am triggering the authentication screen regardless of the disableBackup parameter.

I could modify this to check the disableBackup parameter and if it is disabled I could fail back to the calling application.

There is also an onAuthenticationFailed() method in the FingerprintUiHelper class. I could create a parameter to set the number of attempts to less than 5 and track the failed attempts in the onAuthenticationFailed() method. I could then fail over to the authentication screen or back to the application depending on the disableBackup parameter.

How many failed attempts were you wanting to allow?

from cordova-plugin-android-fingerprint-auth.

Gregen11 avatar Gregen11 commented on August 27, 2024

Checking disableBackup in onError() would definitely work.
Also adding another parameter along the lines of numAttempts could be useful.

5 attempts works fine for me. Mostly, being able to handle what happens in my application when onError() is called and disableBackup is true would be useful. (e.g. canceling the dialog, going to a different page, logging out a user, etc.)

Thank you for your response and your time!

from cordova-plugin-android-fingerprint-auth.

Gregen11 avatar Gregen11 commented on August 27, 2024

I just tested that out and it works great.

Thanks!

from cordova-plugin-android-fingerprint-auth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.