Tap ID without invitation
I am trying to use Touch ID to authenticate a login in an enterprise app. I was hoping the user would only pop up by default once and then just add a label for any subsequent logins. Use Touch ID or Enter PIN (the way apple does it with a passcode). Does anyone know how to suppress the dialog that comes up using the "evaluationPolicy" function? I've seen other apps do this too, so it should be possible.
[localAuthenticationContext evaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics localizedReason:localizedReasonString reply:^(BOOL success, NSError *error) {
if (success)
{
// continue to app
NSLog(@"SUCCEED!!!");
}
else
{
// go back to full login
NSLog(@"error : %@", [error description]);
errorCode(code);
NSLog(@"FAILED!!!");
}
}];
+3
source to share
No one has answered this question yet
Check out similar questions: