Receive notification of touch ID if passcode is used

I am using Touch ID in my application.

  • If I scan a Touch ID fingerprint three times in a row, I get an error Application retry limit exceeded..
  • If the Touch ID fingerprint scan fails two more times, I get an error Biometry is locked out..

After you are blocked from biometrics, you need to enter your password. Oddly enough, if your password is entered correctly, this does not result successin a callback evaluatePolicy. Instead, you will be asked to repeat your biometrics.

How can I get a notification that the password was entered correctly after blocking from biometrics?

+1
source share
1 answer

A really good way to get used to what I mention is to use this project that Apple provided: Using Touch ID with Keychain and LocalAuthentication

There are two ways to offer the user a Touch ID; each has its pros and cons.

  • -[LAContext evaluatePolicy:localizedReason:reply:].

Touch ID ( ). - , - , ( ). evaluatePolicy:localizedReason:reply: Touch ID, .

- , , , ( ).

  1. - , kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly

, . - ID, , ( - iOS 8.3, " " .

, , , (- ).

+2

Source: https://habr.com/ru/post/1658658/


All Articles