@regulaforensics/cordova-plugin-document-reader-beta
v0.0.6
Published
Cordova plugin for reading and validation of identification documents (API framework)
Downloads
6
Readme
Regula Document Reader (Cordova)
Regula Document Reader SDK allows you to read various kinds of identification documents, passports, driving licenses, ID cards, etc. All processing is performed completely offline on your device. No any data leaving your device.
You can use native camera to scan the documents or image from gallery for extract all data from it.
This repository contains the source code of the Document Reader API, and the sample application that demonstrates the API calls you can use to interact with the Document Reader library.
Contents
How to build the demo application
- Visit client.regulaforensics.com to get a trial license (
regula.license
file). The license creation wizard will guide you through the necessary steps. - Download or clone current repository using the command
git clone https://github.com/regulaforensics/DocumentReader-Cordova-Plugin.git
. - Run the following commands in Terminal:
$ cd example
$ npm install
$ npx jetify
$ cordova prepare
- Copy the
regula.license
file to theexample/www
folder. - Android:
- Run
cordova run android
insideexample
folder - this is just one way to run the app. You can also run it directly from within Android Studio.
Note: if the gallery doesn't open, check if the following line is presented in the AndroidManifest.xml inside the application
tag:
<activity android:label="@string/multi_app_name" android:name="com.synconset.MultiImageChooserActivity" android:theme="@android:style/Theme.Holo.Light" />
- iOS:
- Run
cordova run ios
insideexample
folder - this is just one way to run the app. You can also run it directly from within Xcode.
Troubleshooting license issues
If you have issues with license verification when running the application, please verify that next is true:
- The OS, which you use, is specified in the license (e.g., Android and/or iOS).
- The license is valid (not expired).
- The date and time on the device, where you run the application, are valid.
- You use the latest release version of the Document Reader SDK.
- You placed the
license
into the correct folder as described here.
Documentation
You can find documentation on API here.
Additional information
If you have any technical questions, feel free to contact us or create issue here.
To use our SDK in your own app you need to purchase a commercial license.