getIDVDocumentScanProcessStartConfirmation
🔄 Event: getIDVDocumentScanProcessStartConfirmation
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
| Platform | Syntax |
|---|---|
| React Native | rdnaEventRegistery.addListener('getIDVDocumentScanProcessStartConfirmation', handler) |
| Flutter | rdnaClient.on(RdnaClient.getIDVDocumentScanProcessStartConfirmation, handler); |
| Cordova | document.addEventListener('getIDVDocumentScanProcessStartConfirmation', handler, false); |
| Native iOS | (void)getIDVDocumentScanProcessStartConfirmation:(RDNAInitProgressStatus *)state; |
| Native Android | void getIDVDocumentScanProcessStartConfirmation(RDNAInitProgressStatus status); |
📤 Response Format
{ "idvWorkflow" : 14 }🧩 Field Definitions
| Parameter | Type | Description |
|---|---|---|
| idvWorkflow | Enum | Indicates 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:
| Parameter | Type | Description |
|---|---|---|
| isConfirm | Boolean | true to start scanning; false to cancel and redirect to appropriate flow |
| idvWorkflow | Enum | The same workflow enum received in the event |
💡 Developer Actions
| Scenario | Developer Action |
|---|---|
| User agrees | Call setIDVDocumentScanProcessStartConfirmation(true, idvWorkflow) |
| User cancels | Call setIDVDocumentScanProcessStartConfirmation(false, idvWorkflow) |
| Error occurred | Show appropriate message from RDNAError object |
Error Codes:
| Code | Message | Action |
|---|---|---|
| 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.
Updated about 1 month ago
