# 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`

{% hint style="info" %}
Latest Version: 3.1.3
{% endhint %}

#### iOS Project

1. Run the following command

`pod install`

2. In info.plist add the following

`Privacy - Camera Usage Description`

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

`#import "AddProductModuleNameHere-Swift.h"`

{% hint style="info" %}
You can find the product module name under the packaging section in your project's build settings.
{% endhint %}

#### Android Project

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

```groovy
android.enableJetifier=true
android.useAndroidX=true
```

Add the following section to your manifest:

```groovy
<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>
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://valify.gitbook.io/valify-ios-sdk-documentation/document-capture/cordova-plugin/installation-guide.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
