BlinkID / blinkid-cordova

ID scanning for cross-platform apps built with Cordova and Phonegap.
48 stars 34 forks source link

Failed to detect if front and back side match in iOS #139

Open jrsenthilk opened 3 years ago

jrsenthilk commented 3 years ago

Hi,

I have been using BlinkID and we have been testing it in Android and iOS. We configured it to use "MBBlinkIdCombinedRecognizer" and based on your documentation, BlinkID should be able to detect if the front and back side match automatically and throw an error message to the user if it doesn't match.

It works perfectly well in Android but it fails to do so in iOS. We are testing using MyKAD (Malaysia) and your documentation does say that this ID is supported. Despite trying with multiple different MyKAD, the result is still the same whereby it detects in Android but not in iOS. We are using BlinkID 5.8.1 anyway.

Is there a different parameter we need to check for this in iOS ? Doesn't it check automatically in iOS like how it does in Android ?

Hope to get a good reply soon.

Thanks in advance.

mparadina commented 3 years ago

Hi @jrsenthilk

Can you please tell me which overlay are you using in the scanning process?

The data-match option for iOS is only available with the BlinkID Overlay. When using the BlinkID Overlay, you can turn on the requireDocumentSidesDataMatch method, when setting up the BlinkID overlay settings.

When set to true (the true option is set by default), the BlinkID Combined recognizer will check if the front and backside of the document match after the scanning process finishes.

Documentation: https://github.com/BlinkID/blinkid-cordova/blob/master/BlinkID/www/blinkIdScanner.js#L1154

Let me know if you have any additional questions.

Milan

jrsenthilk commented 3 years ago

Hi Milan,

Yes we are using the BlinkID overlay. This is how we are initializing it in our code:

var blinkidOverlaySettings = new cordova.plugins.BlinkID.DocumentVerificationOverlaySettings()

and yes, requireDocumentSidesDataMatch is set to true as well.

Any other items that we need to check further ?

jrsenthilk commented 3 years ago

Just a quick check, we also tried the official BlinkID app from App Store and it doesn't detect the 'sides does not match" part. Is that feature not turned on in your official app in the app store?

mparadina commented 3 years ago

Hi @jrsenthilk

From the sent code line, I can see that you are using the Document Verification Overlay. Did you try using the BlinkIdOverlaySettings and seeing if you can get the alert?

Example: var blinkidOverlaySettings = new cordova.plugins.BlinkID.BlinkIdOverlaySettings();

You can find the code example here as well: https://github.com/BlinkID/blinkid-cordova/blob/master/sample_files/www/js/index.js#L73

Also, just to double-check, are you referring to the Microblink Vision, or BlinkID application from the App Store? Vision: https://apps.apple.com/us/app/microblink-vision/id1464662310 BlinkID: https://apps.apple.com/us/app/blinkid/id1258136557

Regards, Milan