# 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-vidvlivenss@$LATEST_VERSION`

{% hint style="info" %}
Latest Version: [3.1.0](https://www.npmjs.com/package/@valifysolutions/cordova-plugin-vidvliveness/v/3.1.0)
{% 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/VIDVLivenessPlugin.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 ="StartLiveness"
    android:exported="true"
    android:theme="@style/Base_Translucent"
    android:name = "cordova.plugin.vidvliveness.VIDVLivenessActivity">
    <intent-filter >
       <action android:name = "cordova.plugin.vidvliveness.VIDVLivenessActivity" />
       <category android:name = "android.intent.category.DEFAULT" />
    </intent-filter>
</activity>
```
