Question

We use the DOT NFC SDK to read the NFC chips. Currently, the MRZ unlock feature is implemented in your Android samples. How can we use a CAN PIN instead??


Answer

You can change our sample to use CAN. 


You need to change following part:

https://github.com/innovatrics/dot-android-sdk-samples/blob/4485c9c33a83e4171b7f9717aac5bd1a660efcec/app/src/main/java/com/innovatrics/dot/samples/nfcreading/NfcReadingViewModel.kt#L27  



to:


val configuration = NfcTravelDocumentReaderFragment.Configuration(    
    password = CardAccessNumber("123456"),
authorityCertificatesFilePath = resolveAuthorityCertificatesFileUseCase().path,
)


The Card Access Number (CAN) 123456 should be replaced by the correct CAN for the particular ID.


Relevant Product / Version

DIS mobile SDK android