Back to Microblink home page

Follow

BlinkID-Cordova

Not all features of native SDKs are available in Cordova wrapper.

The BlinkID-Cordova wrapper is open source, so you can easily add features that you need.

For 100% of features and maximum control, consider using native SDKs.

Dependencies

MicroBlink.framework/MicroBlink file in iOS submodule exceeds GitHubs limited file size of 100MB. To correctly init the submodule Git LFS is needed. Git LFS can be installed with homebrew:

brew install git-lfs

After installation, don't forget to restart the terminal!

Clone or Download repository

Downloading a repository just downloads the files from the most recent commit of the default branch but without all the dependencies which are in submodules. We recommend that you clone directory. With a clone option, you will get a copy of the history and its functional git repository.

To clone the repository:

Submodules

After cloning repository, make sure you clone also its submodules.

From terminal simply cd into BlinkID-phonegap and execute commands:

git submodule init
git submodule update

 

Sample

Here's a complete example of how to create and build a project for Android and iOS using Cordova):

# pull the plugin and sample application from Github
git clone https://github.com/BlinkID/blinkid-phonegap.git

# initialize and update submodules
git submodule init
git submodule update

# create a empty application
cordova create testcordova

cd testcordova

# add the blinkID plugin
cordova plugin add ../blinkid-phonegap/BlinkID

# build the project, the binary will appear in the bin/ folder
cordova build android

# build the project
cordova build ios

You can also use the provided initDemoApp.sh script that will generate a demo app that uses the plugin:

./initDemoApp.sh

To run the script, you'll need BASH environment on Windows (Linux and MacOS use BASH by default).

Github repository: https://github.com/BlinkID/blinkid-phonegap

Video tutorial(demo is build using Ionic V2 but clone solution is the same): https://github.com/BlinkID/blinkid-phonegap#video-tutorial

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk