tidev / titanium-identity

A collection of API's to authenticate with your device: Keychain/Keystore, Touch ID and Face ID
Other
39 stars 28 forks source link

TiIdentity.isSupported() returns false in ipad #26

Open ginixsan opened 5 years ago

ginixsan commented 5 years ago
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

Anybody with this issue?

ginixsan commented 5 years ago

Anybody???

caspahouzer commented 4 years ago

same here

alexlarocca commented 3 years ago

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