Hey all 👋🏼
Is there any API change required for supporting the Touch ID sensor of an external Magic Keyboard with Touch ID (on a Mac with Apple silicon)?
Currently we rely on canEvaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics
for checking if TouchID is present on a system, but this seems to be returning false
when the laptop is closed/clamshell mode even with the Magic Keyboard with Touch ID connected to it.
Any suggestions?
The code snippet that we use for checking is:
int isTouchIDAvailable() {
int result = 0;
bool success = [[[LAContext alloc] init] canEvaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics error:nil];
if (success) {
return 1;
}
return 0;
}