Ionic
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. Note that the SDK includes the essential Core framework that should be added to all projects.
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
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: https://github.com/regulaforensics/ionic-native-face-api