blinkid-cordova-plugin
v7.7.0
Published
Cordova plugin wrapping Microblink BlinkID native SDKs
Downloads
65
Readme
BlinkID 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 Microblink. For official support and updates, please refer to Microblink.
How to integrate
Add the plugin to your Cordova project using the following command:
cordova plugin add blinkid-cordova-pluginExternal documentation
The API for this plugin is documented in the BlinkID React Native Plugin, on which this Cordova Plugin is based.
Please refer to the BlinkID React Native Plugin Documentation for detailed usage instructions.
Example usage
import { BlinkID, BlinkIdScanningSettings, BlinkIdSdkSettings, BlinkIdSessionSettings, CroppedImageSettings } from "blinkid-cordova-plugin"
const sdkSettings = new BlinkIdSdkSettings("YOUR_LICENSE_KEY_HERE")
const sessionSettings = new BlinkIdSessionSettings()
sessionSettings.scanningSettings = new BlinkIdScanningSettings()
sessionSettings.scanningSettings.returnInputImages = true // Enable returning of input images
const scanningResult = await BlinkID.performScan(sdkSettings, sessionSettings)
// process scanningResult as needediOS build settings
On installation the plugin automatically sets ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = NO in the Xcode project to prevent build errors caused by the bundled asset catalogs.
If you need to keep this setting enabled, add the following preference to your config.xml:
<preference name="BlinkIDGenerateSwiftAssetSymbolExtensions" value="true" />