SDK Documentation
  • Welcome!
  • Document Capture
    • Overview
    • Android Native SDK
      • Installation Guide
      • Implementation Guide
      • SDK Response
    • iOS Native SDK
      • Installation Guide
      • Implementation Guide
      • SDK Response
    • React Native Plugin
      • Installation Guide
      • Implementation Guide
      • Plugin Response
    • Flutter Plugin
      • Installation Guide
      • Implementation Guide
      • Plugin Response
    • Cordova Plugin
      • Installation Guide
      • Implementation Guide
      • Plugin Response
    • Release Notes
      • 🟦Latest Patch Release
      • Minor Release - 12/09/2024
      • Major Release - 11/06/24
      • Minor Release - 07/03/24
      • Minor Release - 30/11/23
      • Minor Release - 17/08/23
      • Minor Release - 03/07/23
      • Minor Release - 15/06/23
      • Minor Release - 15/03/23
      • Major Release - 02/04/23
    • 🆕Coming Soon
  • Biometrics
    • Overview
    • Android Native SDK
      • Installation Guide
      • Implementation Guide
      • SDK Response
    • iOS Native SDK
      • Installation Guide
      • Implementation Guide
      • SDK Response
    • React Native Plugin
      • Installation Guide
      • Implementation Guide
      • Plugin Response
    • Flutter Plugin
      • Installation Guide
      • Implementation Guide
      • Plugin Response
    • Cordova Plugin
      • Installation Guide
      • Implementation Guide
      • Plugin Response
    • Release Notes
      • 🟦Latest Patch Release
      • Minor Release - 17/08/23
      • Minor Release - 03/07/23
      • Minor Release - 15/03/23
      • Major Release - 02/04/23
  • SDK Error Codes
  • Support
    • Contact Us
    • Legacy SDKs
Powered by GitBook
On this page
  • iOS Minimum Requirements
  • Android Minimum Requirements
  • Installation
  1. Document Capture
  2. Cordova Plugin

Installation Guide

iOS Minimum Requirements

  • iOS Version: 12

  • Xcode Version: 14.2

  • Camera access is mandatory

Android Minimum Requirements

  • Jetpack Library: AndroidX

  • Java Version: 11

  • API Level: 21 or higher (Android 5.0)

  • Compile SDK: 32 or higher

  • Camera access is mandatory (NOTE : The SDK handles permission requests, so you don't need to implement them in your app).

Installation

Add the following commands in your terminal to download the plugin

cordova plugin add @valifysolutions/cordova-plugin-vidvocr@$LATEST_VERSION

Latest Version: 3.0.5

iOS Project

  1. Run the following command

pod install

  1. In info.plist add the following

Privacy - Camera Usage Description

  1. Navigate to “Plugins/VIDVOCRPlugin.m” and change line 6 with the following

#import "AddProductModuleNameHere-Swift.h"

You can find the product module name under the packaging section in your project's build settings.

Android Project

Open the file Gradle Scripts | gradle.properties and enable the following:

android.enableJetifier=true
android.useAndroidX=true

Add the following section to your manifest:

<activity android:label ="StartOCR"
    android:exported="true"
    android:theme="@style/Base_Translucent"
    android:name = "cordova.plugin.vidvocr.VIDVOCRActivity">
    <intent-filter >
       <action android:name = "cordova.plugin.vidvocr.VIDVOCRActivity" />
       <category android:name = "android.intent.category.DEFAULT" />
    </intent-filter>
</activity>
PreviousCordova PluginNextImplementation Guide

Last updated 7 months ago