iOS Presence Authenticator
HYPR SDK for iOS: iOS Authenticators
This document provides a description of the HYPR SDK for iOS Presence Authenticator interface and integration guidelines. Users must confirm their presence by tapping on the confirmation button to complete authentication.
Integration Guide
- Embed the Authenticator framework into your project.

- Import the Authenticator framework into
AppDelegate.m
.
#import <HYPRPresence/HYPRPresence.h>
#import <HYPRCore/HYPRCore.h>
- Enable the Authenticator and create
ViewController
.
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[HYPRUAFClient registerAuthenticatorModule:[HYPRPresenceAsm class]];
// Create a view controller to accept the pass and confirm actions
UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"Tap Authenticator" message:@"Do you want to confirm this request?" preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction *confirmAction = [UIAlertAction actionWithTitle:@"Confirm" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
[HYPRPresenceController.sharedInstance confirm];
}];
UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:@"Cancel" style:UIAlertActionStyleCancel handler:^(UIAlertAction * _Nonnull action) {
[HYPRPresenceController.sharedInstance cancel];
}];
[alert addAction:confirmAction];
[alert addAction:cancelAction];
[HYPRPresenceController.sharedInstance setEnrollmentViewController:alert];
[HYPRPresenceController.sharedInstance setVerificationViewController:alert];
}
Updated 5 months ago