Sample app showcasing the integration of the Onfido SDK on an Ionic app
onfidoSampleApp
contains the sample app codecordova-plugin-template
contains the Cordova plugin that wraps the Onfido Android SDK. Based on this template
Install the project, link the plugin to the sample app and add android platform
cd onfidoSampleApp
npm install
cordova plugin add --link ../cordova-plugin-template
cordova platform add android
Edit for adding the SDK dependency (According to the Android SDK Documentation):
platforms/android/app/build.gradle
repositories {
maven {
url "https://dl.bintray.com/onfido/maven"
}
}
dependencies {
compile 'com.onfido.sdk.capture:onfido-capture-sdk:+'
}
ionic cordova build android
cordova emulate android
- Complete the e2e integration between the Ionic application and the Cordova plugin, with callbacks to the application.