How can I get whether current iOS device supports faceId_supported
or touchId_supported
if(faceId_supported) {
driver.executeScript("mobile:sendBiometricMatch", ImmutableMap.of("type", "faceId", "match", true));
} else if(touchId_supported) {
driver.executeScript("mobile:sendBiometricMatch", ImmutableMap.of("type", "touchId", "match", true));
} else {
throw new Exception("Biometric authentication not supported by this device");
}
I know I can go for faceId or touchId verification based on iOS versions > 10+ as below
driver.getCapabilities().getCapability("platformVersion")
but is there any better way to detect whether device support faceId_supported
or touchId_supported
?