Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add BlinkID to an existing ionic project example #48

Open
ziyadsfaxi opened this issue Mar 21, 2018 · 6 comments
Open

Add BlinkID to an existing ionic project example #48

ziyadsfaxi opened this issue Mar 21, 2018 · 6 comments

Comments

@ziyadsfaxi
Copy link

Hello,

I't would really be helpful if there is an example on how to add BlinkID to an existing ionic project.

Thank you.

@adityapurwa
Copy link

Need this, is there anyone that can help us on this?

@culoi
Copy link
Contributor

culoi commented Apr 12, 2018

Hello,

Our main focus is on software development.
We support numerous cross platforms but we are not activly working on them.
Can you please let us know where exactly the problem is and maybe someone from our development team can help.

Regards

@adityapurwa
Copy link

The example provided within this repository is not standard to the usual Ionic steps and guides to add a platform, thus making it confusing to people who were used on how usually we add an Ionic native plugins. Also, there is no ionic-native wrapper that we can include to NgModule, the example is editing the index.html straight away and not putting it inside any typescript file or angular components.

I think we will understand better if it is more thoroughly documented and follow Ionic standards on plugin installation.

@ziyadsfaxi
Copy link
Author

Hello @adityapurwa ,
this is how you can Integrate BlinkID to an existing ionic app:

  1. add the BlinkID cordova plugin:
    cordova plugin add blinkid-cordova.
  2. declare cordova's variable to use it's plugins:
import { Component } from '@angular/core';
declare var cordova;
@Component({...})
export class HomePage {...}

Note:
you don't have to add it to app.module, you can just use it directly.

  1. Make sure you set blinkID's configurations correctly:
var types = ["USDL", "MRTD", "Barcode"];
var imageTypes = ["IMAGE_SUCCESSFUL_SCAN", "IMAGE_FACE", "IMAGE_DOCUMENT"];
var language = "en";
var licenseiOs = "<your iOS license>";
var licenseAndroid = "<your Android license>";
  1. then you can follow the decontamination:
 cordova.plugins.blinkIdScanner.scan(...)

Notice the cordova variable that we declared in the second step.

@patriciachrysy
Copy link

Hello @Zizo95,
could you provide the entire code source for this? i am really stucked on this issue now, please it would help if you can explain more.

@Cerovec
Copy link
Contributor

Cerovec commented Mar 26, 2020

Hi @Zizo95, @adityapurwa, @patriciachrysy,

Sorry for not following up on this. We did add the ionic sample project, as you can see here: https://github.com/BlinkID/blinkid-cordova/blob/master/initIonicDemoApp.sh

We hope this helps. Let us know if you have any other issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants