Comments (6)
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.
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.
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
withPlatformException
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.
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.
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.
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)
- null object error in onActivityResult HOT 2
- Testing with Flutter Driver HOT 1
- UsdlCombinedRecognizer fails on IOS HOT 2
- Info.plist missing required key (IOS) HOT 2
- Null safety HOT 6
- Type of the document returns Types.None for passports HOT 5
- ImagePicker HOT 1
- Implementation for ios : not found object signResult, digitalSignature and digitalSignatureVersion HOT 11
- Failed to build `Android app` after adding `blinkid_flutter` to dependencies! HOT 3
- Readme file is misleading!
- Return `nationality` in 2-letter ISO code
- Web Support HOT 3
- Scan result source question HOT 3
- Error: java.lang.ArrayIndexOutOfBoundsException: length=4; index=4 HOT 2
- Disable instructions pane HOT 2
- Unable to scan DL on iPhone
- Unable to use IdRecognizer with USDL HOT 2
- java.lang.UnsatisfiedLinkError: dlopen failed: library "libBlinkID.so" not found HOT 4
- [BlinkIDFlutterPlugin overlayDidTapClose:] EXC_BAD_ACCESS (KERN_INVALID_ADDRESS) HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blinkid-flutter.