iproov-cordova-plugin
v1.0.1
Published
Cordova plugin wrapping iProov native SDKs
Readme
iProov Cordova Plugin
DISCLAIMER:
This Cordova plugin is a Wultra-driven project, tailored for the needs of their clients and is not officially maintained or supported by iProov. For official support and updates, please refer to iProov.
How to integrate
Add the plugin to your Cordova project using the following command:
cordova plugin add iproov-cordova-pluginExternal documentation
API for this plugin is documented in the iProov React Native Plugin, which this Cordova Plugin is based on.
The API for this plugin is documented in the iProov React Native Plugin, on which this Cordova Plugin is based.
Please refer to the iProov React Native Plugin Documentation for detailed usage instructions.
Example usage
import { IProov } from "iproov-cordova-plugin"
const token = "TOKEN_FROM_YOUR_BACKEND" // Obtain this token from your backend
const url = "wss://eu3.rp.secure.iproov.me/ws" // Use the appropriate URL for your region
const options = null // You can provide additional `IProovOptions` if needed.
console.log("Starting iProov presence check...")
// Launch the iProov presence check. The call will wait until the process is completed.
const iProovResult = await IProov.launch(url, token, options, (event) => {
// Handle iProov events here during the presence check
console.log(`iProov event: ${event.name}`)
})
// The presence check is completed when the above call returns a result
console.log(`iProov presence check completed with result: ${JSON.stringify(iProovResult)}`)