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

Between 2.0.1 and 2.1.0 barcode scanning speed (at least for CODE_39) has decreased on android #7

Open
joshstrange opened this issue Jan 6, 2017 · 3 comments

Comments

@joshstrange
Copy link

iOS has no issue but Android is noticeably slower. Every once in awhile it will pick it up right away but most of the time you can see the barcode clear as day and it won't pick it up. I use this library through using the cordova barcode scanning library and noticed the decrease going from 6.0.3 and 6.0.4. I have tried the latest version of this library in cordova and it still exhibits the same issues.

@joshstrange
Copy link
Author

joshstrange commented Jan 6, 2017

I went ahead and branched 2.0.2 and the merged in your torch toggle commits, built the .aar, moved it into the cordova barcode scanner library, and then it all worked (fast scanning but the ability to toggle the torch and start with the torch on).

https://github.com/corrisoft/barcodescanner-lib-aar/tree/fast (<- Nothing special here just for reference)

I also went ahead and bundled it all up if anyone else needs it:

[ionic | cordova | phonegap] plugin add https://github.com/corrisoft/phonegap-plugin-barcodescanner.git  --variable CAMERA_USAGE_DESCRIPTION="To scan barcodes" --save

@joshstrange
Copy link
Author

Well it appears I tried to run before I could walk. I'd wager there is an issue with 6.0.5 that I didn't check for as I was testing with 6.0.4 so I'll need to take a look at that but that won't happen until at least monday.

@joshstrange
Copy link
Author

Ok, this comment #7 (comment) is now valid. It is working correctly with the latest cordova plugin and there is no speed loss.

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

No branches or pull requests

1 participant