ios - How to test Touch ID feature while don't have iPhone 5s device -


i want implement touch id feature app, have written code:

lacontext *context = [[lacontext alloc] init];          nserror *error = nil;         if ([context canevaluatepolicy:lapolicydeviceownerauthenticationwithbiometrics error:&error]) {             [context evaluatepolicy:lapolicydeviceownerauthenticationwithbiometrics                     localizedreason:@"are device owner?"                               reply:^(bool success, nserror *error) {                                    if (error) {                                       uialertview *alert = [[uialertview alloc] initwithtitle:@"error"                                                                                       message:@"there problem verifying identity."                                                                                      delegate:nil                                                                             cancelbuttontitle:@"ok"                                                                             otherbuttontitles:nil];                                       [alert show];                                       return;                                   }                                    if (success) {                                       uialertview *alert = [[uialertview alloc] initwithtitle:@"success"                                                                                       message:@"you device owner!"                                                                                      delegate:nil                                                                             cancelbuttontitle:@"ok"                                                                             otherbuttontitles:nil];                                       [alert show];                                    } else {                                       uialertview *alert = [[uialertview alloc] initwithtitle:@"error"                                                                                       message:@"you not device owner."                                                                                      delegate:nil                                                                             cancelbuttontitle:@"ok"                                                                             otherbuttontitles:nil];                                       [alert show];                                   }                                }];          } else {              uialertview *alert = [[uialertview alloc] initwithtitle:@"error"                                                             message:@"your device cannot authenticate using touchid."                                                            delegate:nil                                                   cancelbuttontitle:@"ok"                                                   otherbuttontitles:nil];             [alert show];          } 

i don't have devices support touch id feature, can test see functionality work fine or not.

any appreciated. thanks.

you can test touchid on real device. simulator not support this.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -