regulaforensics / react-native-document-reader

React-Native Framework for reading and validation of identification documents
19 stars 10 forks source link

"db.dat is incorrect" #2

Closed Sandeep040593S closed 3 years ago

Sandeep040593S commented 3 years ago

Failed during initialisation and throws below error "Init failed:com.regula.documentreader.api.errors.DocReaderStateException: db.dat is incorrect"

vyakimchik commented 3 years ago

Hello. It seems that you use a database that is incompatible with the latest SDK. Try to update the database to the latest version.

Sandeep040593S commented 3 years ago

Hello. It seems that you use a database that is incompatible with the latest SDK. Try to update the database to the latest version.

hey have used the same db which was shared to me by your team for a specific region the same db works on Native android side

Have used Bet Version below are the details API implementation('com.regula.documentreader:api:5.2.3076') { transitive = true }

Sandeep040593S commented 3 years ago

Hello. It seems that you use a database that is incompatible with the latest SDK. Try to update the database to the latest version.

Have updated database to latest version but still no luck....shows the same error "Init failed:com.regula.documentreader.api.errors.DocReaderStateException: db.dat is incorrect"

vyakimchik commented 3 years ago

Did you install the app with the new database over the existing one? If so, did you increase the app version (version code)? Also, try to invoke the following method before initialization: removeDatabase.

vyakimchik commented 3 years ago

The issue has been resolved which we were informed about.