Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

TiIdentity.isSupported() returns false in ipad #26

Open
ginixsan opened this issue Dec 25, 2018 · 3 comments
Open

TiIdentity.isSupported() returns false in ipad #26

ginixsan opened this issue Dec 25, 2018 · 3 comments

Comments

@ginixsan
Copy link

ginixsan commented Dec 25, 2018

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
Copy link
Author

ginixsan commented Jan 9, 2019

Anybody???

@caspahouzer
Copy link
Contributor

same here

@alexlarocca
Copy link

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants