Giter VIP home page Giter VIP logo

Comments (6)

anjapenic avatar anjapenic commented on May 20, 2024 1

Hello @mehulcs,

Could you contact us at [email protected] so we could inspect your license key and check what's causing the crash?

Regards,
Anja

from blinkid-flutter.

anjapenic avatar anjapenic commented on May 20, 2024

Hi @mehulcs,

Could you give us a bit more info on the issue? Are you asking about the method which would catch a license key exception and inform the user if there is a problem with the license key?

Are you getting a license key crash?

Regards,
Anja

from blinkid-flutter.

mehulcs avatar mehulcs commented on May 20, 2024

Hi Anja, Thanks for responding.

I'm looking for either of 2 solutions

  • Catch the exception of license expiry to avoid a crash. Putting a try/catch with PlatformException doesn't help.
  • Way to check if the license is expired before starting the scanner that would not crash the application.

Error reported from the Crashlytics.

Fatal Exception: MBInvalidLicenseKeyException
Your license key is invalid! License has expired on 2021-04-28

from blinkid-flutter.

anjapenic avatar anjapenic commented on May 20, 2024

Hello @mehulcs,

Thank you for waiting for our answer.

There is a way to wrap the code which starts the scanner with a try/catch block like this:

try{
  var results = await MicroblinkScanner.scanWithCamera(
          RecognizerCollection([idRecognizer]), settings, license);
      if (!mounted) return;
      //code for handling results
} on PlatformException catch(ex){
print(ex)
}

However, when obtaining a production license key, you'll get a license that doesn't expire and it won't crash the app like an expired trial or pilot license could, so you would only need the try/catch block in your testing period.

Hope this helped, let us know if it worked for you when you test it out. Also, if you have any further questions feel free to ask.

Regards,
Anja

from blinkid-flutter.

mehulcs avatar mehulcs commented on May 20, 2024

Hi @anjapenic

Thanks for responding, Putting try/catch block as mentioned above in the sample code still doesn't work. It still crashes the application.

from blinkid-flutter.

mehulcs avatar mehulcs commented on May 20, 2024

Also, there's one more issue with the scanning functionality, the Library is able to scan the passports and parse the result, But the type of the document always returns Types.None for passport documents. For the driver's license, the type is returned correctly.

I'm reading the type from below field,
result.classInfo.type

I have scanned passports of the below countries, But none of them returns the type.

Spain
German
India
Australia
Ireland
New Zealand
USA
Canada
China

Thanks.

from blinkid-flutter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.