For the complete documentation index, see llms.txt. This page is also available as Markdown.

NFC / Reading Flow

The "NFC/Reading Flow" is essentially the same as the "Enrollment Flow," with the only difference being the initial step. Instead of automatically scanning a document using the phone's camera, the process begins with the NFC/Reading step. To proceed, you must provide the necessary data to unlock the chip. Only one document can be processed at a time. Additional features, such as facial recognition and background check, can be enabled just as they are in the "Enrollment Flow."

In order to use our SDK you need an authorization token. Please check our API "Authorisation" in this regard.

Add the following code at the start-up of your application to initialize the SDK:

import 'package:uqudosdk_flutter/UqudoIdPlugin.dart';
import 'package:uqudosdk_flutter/uqudosdk_flutter.dart';
...
UqudoIdPlugin.init();
...

Use the below method for setting the locale of the application:

...
UqudoIdPlugin.setLocale(<your locale eg. fr, en etc.>);
...

The Uqudo SDK provides a builder class to initiate the "NFC / Reading Flow". See the example below:

import 'package:uqudosdk_flutter/UqudoIdPlugin.dart';
import 'package:uqudosdk_flutter/uqudosdk_flutter.dart';
...

String result;
try {
  var readingConfiguration = new ReadingBuilder()
      .setToken(token)
      .setDocumentType(DocumentType.UAE_ID)
      .setDocumentNumber("123456789")
      .setDateOfBirth("1980-08-25")
      .setDateOfExpiry("2022-03-06")
      .build();
  result = await UqudoIdPlugin.reading(readingConfiguration);
} on PlatformException catch (exception) {
  result = exception.code;
   // e.g. {"code":"USER_CANCEL","message":"User canceled the Reading process","task":"READING"}
}

In order to evaluate all the possible options please refer to section NFC / Reading Flow. The dart interface is the porting of the JAVA one. In addition you can check the dart files in the plugin ./lib folder or directly from your IDE.

If successful, the response is a JSON Web Signature (JWS). Please refer to section "SDK result" for further details.

In case of a failure, the callback returns the following object:

Property
Type
Optional
Default
Description

code

String

No

None

message

String

Yes

null

Description of the error if any

task

String

Yes

null

Add the following event to enable the tracing mechanism as per the code shown below. Please refer to section Analytics for details.

Last updated

Was this helpful?