Push to Authenticate Confirmation Screens UI Customization

HYPR SDK for iOS: Web Authentication

Customize the Authentication Confirmation Screen

When starting an authentication from the web, a prompt on the mobile device asks the user to confirm that they want to perform the authentication.

1125

Overriding the Authentication Confirmation UI

Here is sample code for modifying the confirmation view controller with an alert controller. You can use any ViewController you'd like in place of the alert controller.

let alertController = UIAlertController(title: "Login?", message: "", preferredStyle: .alert)
alertController.addAction(UIAlertAction(title: "Cancel", style: .default), handler: { _ in
  HYPRPromptHeadlessController.sharedInstance.cancel()
})
alertController.addAction(UIAlertAction(title: "OK", style: .default, handler: { _ in
  HYPRPromptHeadlessController.sharedInstance.confirm()
}))
HYPRPromptHeadlessController.sharedInstance().confirmationController = alertController

Customize the Transaction Confirmation Screen

When starting a transaction from the web, a prompt on the phone asks the user to confirm that they want to perform the authentication.

1125

Overriding the Transaction Confirmation UI

Here is sample code for modifying the transaction view controller with an alert controller. You can use any ViewController you'd like in place of the alert controller.

let alertController = UIAlertController(title: "Login?", message: "", preferredStyle: .alert)
alertController.addAction(UIAlertAction(title: "Cancel", style: .default), handler: { _ in
  HYPRPromptHeadlessController.sharedInstance.cancel()
})
alertController.addAction(UIAlertAction(title: "OK", style: .default, handler: { _ in
  HYPRPromptHeadlessController.sharedInstance.confirm()
}))
HYPRPromptHeadlessController.sharedInstance().transactionViewController = alertController