Does MOE support iOS 3D touch and thumb scan for both?

Hi,

Does MOE support iOS 3D touch ? and also, does iOS and Android support fingerprint security ?

Thanks

Dear Ivan,

MOE supports iOS’s 3D touch and fingerprint security.

Amazing !!! Nice if there some example for reference .

Thanks again for the Amazing work !
Ivan

Dear Ivan,

Most of Apple’s APIs can be directly ported from Objective-C. For example a TouchID example in ObjC:

    LAContext *context = [[LAContext alloc] init];
    NSError *error = nil;
    if ([context canEvaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics error:&error]) {
        [context evaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics
                localizedReason:@"test"
                          reply:
         ^(BOOL success, NSError *error) {
             if (error) {
                 NSLog(@"evaluatePolicyLocalizedReasonReply failed with %@", error.localizedDescription);
             } else if (success) {
                 NSLog(@"success");
             } else {
                 NSLog(@"failure");
             }
         }];
    } else {
        NSLog(@"canEvaluatePolicy failed with %@", error.localizedDescription);
    }

Can be easily ported to MOE:

    LAContext context = LAContext.alloc().init();
    Ptr<NSError> errorPtr = PtrFactory.newObjectPtr(NSError.class, 1, true, false);
    if (context.canEvaluatePolicyError(LAPolicy.AuthenticationWithBiometrics, errorPtr)) {
        context.evaluatePolicyLocalizedReasonReply(LAPolicy.AuthenticationWithBiometrics,
                "test", (success, error) -> {
            if (error != null) {
                System.out.println("evaluatePolicyLocalizedReasonReply failed with " + error
                        .localizedDescription());
            } else if (success) {
                System.out.println("success");
            } else {
                System.out.println("failure");
            }
        });
    } else {
        System.out.println("canEvaluatePolicyError failed with " + errorPtr.get()
                .localizedDescription());
    }
2 Likes

OK ,great ! Will bookmark this part !

Thanks again
Ivan

Nice if this part can be officially part of the MOE example for iOS and Android .

Thanks