UNPKG

@regulaforensics/cordova-plugin-document-reader-api

Version:

Cordova plugin for reading and validation of identification documents (API framework)

33 lines (26 loc) 1.86 kB
# How to build the demo application 1. Get the trial license at [client.regulaforensics.com](https://client.regulaforensics.com/) (`regula.license` file). The license creation wizard will guide you through the necessary steps. 2. Get the trial database at [client.regulaforensics.com/customer/databases](https://client.regulaforensics.com/customer/databases) (`db.dat`) 3. Download or clone current repository using the command `git clone https://github.com/regulaforensics/DocumentReader-Cordova-Plugin.git`. 4. Copy the `regula.license` file to the `example/www/` folder. 5. Copy the `db.dat` file to the `example/www/` folder. 6. Run the following commands in Terminal: ```bash $ cd example $ npm install $ npx jetify $ cordova prepare ``` 7. Android: * Run `cordova run android` inside `example` 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" />` 8. iOS: * Run `cordova run ios` inside `example` 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: 1. The OS, which you use, is specified in the license (e.g., Android and/or iOS). 3. The license is valid (not expired). 4. The date and time on the device, where you run the application, are valid. 5. You use the latest release version of the Document Reader SDK. 6. You placed the `license` into the correct folder as described [here](#how-to-build-demo-application).