getIDVDocumentScanProcessStartConfirmation

🔄 Event: getIDVDocumentScanProcessStartConfirmation

📘 Description

The getIDVDocumentScanProcessStartConfirmation event is triggered by the REL-ID SDK before initiating the document scan as part of the identity verification (IDV) workflows. It provides an opportunity for the mobile app to present information to the user and confirm their intent before starting the scan.

🎯 Purpose

To notify the app that a document scan is about to begin, allowing the developer to:

  • Show instructions to the user.
  • Collect user consent.
  • Proceed with document scanning by invoking the corresponding API: setIDVDocumentScanProcessStartConfirmation.

🧑‍💻 Platform Support

PlatformSyntax
React NativerdnaEventRegistery.addListener('getIDVDocumentScanProcessStartConfirmation', handler)
FlutterrdnaClient.on(RdnaClient.getIDVDocumentScanProcessStartConfirmation, handler);
Cordovadocument.addEventListener('getIDVDocumentScanProcessStartConfirmation', handler, false);
Native iOS(void)getIDVDocumentScanProcessStartConfirmation:(RDNAInitProgressStatus *)state;
Native Androidvoid getIDVDocumentScanProcessStartConfirmation(RDNAInitProgressStatus status);

📤 Response Format

{ "idvWorkflow" : 14 }

🧩 Field Definitions

ParameterTypeDescription
idvWorkflowEnumIndicates the workflow that triggered the scan, such as Activation or ActivatedCustomerKYC.

🧠 Developer Notes

  • This event can be used to display instruction guide and take user consent before start the document scan process.

✅ Recommended UI Usage

Display the following messages to the user:

  • “We need to verify your identity.”
  • “Please scan a valid document like a passport or driver’s license.”
  • “Ensure good lighting and avoid glare on the document.”
  • A Start or Proceed button, which when clicked, should call the response API.
  • A Cancel or Close button, which when clicked, should call the response API with false value to terminate the flow.


🛠️ Response API: setIDVDocumentScanProcessStartConfirmation

Description:

This API starts the document scanning process or cancels it based on user input.

Parameters:

ParameterTypeDescription
isConfirmBooleantrue to start scanning; false to cancel and redirect to appropriate flow
idvWorkflowEnumThe same workflow enum received in the event

💡 Developer Actions

ScenarioDeveloper Action
User agreesCall setIDVDocumentScanProcessStartConfirmation(true, idvWorkflow)
User cancelsCall setIDVDocumentScanProcessStartConfirmation(false, idvWorkflow)
Error occurredShow appropriate message from RDNAError object

Error Codes:

CodeMessageAction
146"IDV identity verification canceled by user"Show cancellation screen or retry flow

💻 API Usage

React Native
EventEmitter.addListener(
  'getIDVDocumentScanProcessStartConfirmation',
  getIDVDocumentScanProcessStartConfirmation
);

RdnaClient.setIDVDocumentScanProcessStartConfirmation(true, idvWorkflow, (response) => {});
Flutter
rdna.on(RdnaClient.getIDVDocumentScanProcessStartConfirmation, getIDVDocumentScanProcessStartConfirmation);

rdna.setIDVDocumentScanProcessStartConfirmation(true, idvWorkflow);
Cordova
document.addEventListener(
  'getIDVDocumentScanProcessStartConfirmation',
  getIDVDocumentScanProcessStartConfirmation,
  false
);

com.uniken.rdnaplugin.RdnaClient.setIDVDocumentScanProcessStartConfirmation(
  successCallback, errorCallback, [true, idvWorkflow]
);
Native iOS
(void)getIDVDocumentScanProcessStartConfirmation:(RDNAIDVWorkflow)workflow;

(RDNAError*)setIDVDocumentScanProcessStartConfirmation:(BOOL)isConfirm
                                             idvWorkflow:(RDNAIDVWorkflow)workflow;
Native Android
void getIDVDocumentScanProcessStartConfirmation(RDNA.RDNAIDVWorkflow idvWorkflow);

RDNA.RDNAError setIDVDocumentScanProcessStartConfirmation(boolean isConfirm, RDNA.RDNAIDVWorkflow idvWorkflow);

🔁 Next Steps

After a successful document scan, the SDK will trigger the next event:

  • getIDVConfirmDocumentDetails: Developer must display scanned details and confirm with user.