Closed ziogaschr closed 8 years ago
I was going to make the similar pull request and i noticed this by @ziogaschr . When the app is in background and user still has a valid "Session" come back to the app result in a cancelable touch-id prompt which is odd. please merge.
@velikanov I plan to merge the PRs tomorrow if you don't have any considerations to add :)
Some apps need to be able to request TouchID immediately which is served by a nice option in the library. Furthermore, the nice thing with this library is that it can be easily extended for supporting more features. One feature that we have added to our app is passcode expiry after a time period. For example user wants to leave app unlocked for 3 minutes.
In this case our flow is as follows:
*
So for
*
the issue is that by settingshouldRequestTouchIDImmediately
totrue
it will display the TouchID alert and there is no easy way to dismiss it. Apple has introducedLAContext().invalidate()
at iOS9, although the animation has to happen and the user sees a flickering/annoying animation.So instead of this, it works better to leave
shouldRequestTouchIDImmediately
tofalse
and callauthenticateWithBiometrics
in our apps' code if needed.p.s:
passcodeConfiguration.shouldRequestTouchIDImmediately
has been moved out ofauthenticateWithBiometrics
as it doesn't feel to be in the right context and also caused the above scenario to not work.