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>

Last updated