Hello,

i'm trying to integrate Face Id on my IOS app , then to achieve that i used 
the native interface using the LocalAuthentication framework, the problem 
founded existe on the function that check the type of the biometry used 
natively on the IOS device ''biometryType',
unfortunately, the xcode that you are using doesn't support the new 
LocalAuthentication framework based on xcode 9.x .


that's my code : 


  LAContext *laContext = [[LAContext alloc] init];

    NSError *error1 = nil;

    NSString *stringToReturn = nil;

    

    if (@available(iOS 8.0, *)) {

        

        NSError *authError = nil;

        BOOL isCanEvaluatePolicy = [laContext canEvaluatePolicy:
LAPolicyDeviceOwnerAuthenticationWithBiometrics error:&authError];

        

        

        if (isCanEvaluatePolicy) {

            if (@available(iOS 11.0, *)) {

                switch (laContext.biometryType) {

                    case LABiometryTypeNone:

                    {

                        stringToReturn=@"NONE";

                    }

                        break;

                    case LABiometryTypeTouchID:

                    {

                        stringToReturn=@"TOUCHID";

                    }

                        break;

                    case LABiometryTypeFaceID:

                    {

                        stringToReturn=@"FACEID";

                    }

                        break;

                    default:

                        break;

                }

            } else {

                stringToReturn=@"TOUCHID";

            }

            

        } else {

            stringToReturn=@"NONE";

        }

        

        

    } else {

        // Fallback on earlier versions

        stringToReturn=@"NONE";

    }

    

please help!!

thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/cc61b1aa-393e-4668-90c1-e31b8fbb82d8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to