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

  1. npm install @valifysolutions/react-native-vidvliveness@<LATEST_VERSION>

  2. npm pod-install (ONLY FOR IOS).

Latest Version: 1.4.4

iOS Project

In info.plist add the following

  • “Privacy - Camera Usage Description”

Android Project

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

android.enableJetifier=true
android.useAndroidX=true

Add this code into your AndroidManifest.xml file :

<manifest xmlns:android="http://s...content-available-to-author-only...d.com/apk/res/android"
    xmlns:tools="http://s...content-available-to-author-only...d.com/tools">
    <!-- Add the meta-data element here with tools:replace -->
        <meta-data
            android:name="com.google.mlkit.vision.DEPENDENCIES"
            android:value="liveness"
        tools:replace="android:value" />

Last updated