Make authenticateWithBiometrics
public so as App can present it if needed
#15
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.