-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
pdf417 not scanning #7
Comments
interesting! will investigate |
could you try https://zxing-wasm-demo.deno.dev/ zxing-wasm is the polyfill that is used when there is no native support. we have not updated that in a while so maybe it works upstream. I’m thinking that whether or not this polyfill is active could explain when we run into these issues. also could you include the console logs from barqode? it should indicate if the polyfill is used IIRC. |
Yes, https://zxing-wasm-demo.deno.dev/ works perfectly. I think this line from the console is relevant:
Whole log:
|
wait, so it doesn’t work with the native API? that is very unfortunate. I’m not sure how to best proceed then, will have to think about this… |
Does it work for you? If it's a chrome bug then they might be able to fix it. I don't know how the API works, for all i know returning "" might be the equivalent of "not implemented" which is not really a "bug" bug on their side. Alternatively, could allow us to toggle using the polyfill even if it's not required |
what I mean was if it's not working with the native API then it's much harder to fix since we cannot really change how the built in native browser APIs work. we might have to expose a setting for always using the polyfill as you suggested, will look into that. or happy to review a PR if you interested to contribute |
Describe the bug
This might be an upstream issue. See also gruhn/vue-qrcode-reader#459
Basically,
barqode
will detect and scan PDF417 codes, but the output is emptystring""
.I tested again today with a real boarding pass and got nothing, while using a random website scanner actually decodes the data properly.
from https://barqode.sveco.dev/docs/demos/full-demo:
from random website (working)
Reproduction
Logs
System Info
Severity
blocking all usage of Barqode
The text was updated successfully, but these errors were encountered: