if (isiOS) {
// In order to check the biometry type, you have to check if biometrics are supported in general
var supported = TiIdentity.isSupported();
console.log('supported '+supported);
if (TiIdentity.biometryType == TiIdentity.BIOMETRY_TYPE_FACE_ID) {
authPhrase = 'Face ID';
} else if (TiIdentity.biometryType == TiIdentity.BIOMETRY_TYPE_TOUCH_ID) {
authPhrase = 'Touch ID';
} else {
authPhrase = '(None available)';
}
if (!supported) {
alert('Authentication is not supported. Available biometrics: ' + authPhrase);
}
// Using this constant, iOS will automatically offer to authenticate with Face ID or Touch ID
// when calling "authenticate" below.
TiIdentity.setAuthenticationPolicy(TiIdentity.AUTHENTICATION_POLICY_BIOMETRICS); // or: AUTHENTICATION_POLICY_PASSCODE
}
this returns always false (none available) for TiIdentity.isSupported() if device is ipad even if it has touchid
It works properly even on iPad if Touch ID has been enabled. Otherwise TiIdentity.isSupported() will return false.
Tested on iPad 7th generation iOS 14.4
this returns always false (none available) for TiIdentity.isSupported() if device is ipad even if it has touchid
Anybody with this issue?