Skip to content

Ionic

This is an Ionic-specific Face SDK installation guide. Before proceeding further, make sure you've read the Installation page and have selected the Core type to install.

Requirements

  • The latest stable version of Ionic
  • For iOS, the minimum target is iOS 11.0
  • For Android, the minimum Android API level is 21

Installation

The Face SDK is available on npm.

Run the following commands to add the SDK to the project:

npm install --save @regulaforensics/ionic-native-face-api
ionic cordova plugin add @regulaforensics/cordova-plugin-face-api
ionic cordova plugin add @regulaforensics/cordova-plugin-face-core-basic
npm install --save @regulaforensics/ionic-native-face-api
ionic cordova plugin add @regulaforensics/cordova-plugin-face-api
ionic cordova plugin add @regulaforensics/cordova-plugin-face-core-match

src/app/home/home.module.ts:

import { FaceSDK } from '@regulaforensics/ionic-native-face-api/ngx'

@NgModule({
  ...,
  providers:[
    ...,
    FaceSDK
  ],

src/app/home/home.page.ts:

import { FaceSDK } from '@regulaforensics/ionic-native-face-api/ngx'

constructor(public FaceSDK: FaceSDK, ...) { }

Info

You can always use our demo application on GitHub.

Next Step