capacitor-community / barcode-scanner

A fast and efficient (QR) barcode scanner for Capacitor
MIT License
437 stars 167 forks source link

Implement web plugin in v5 #250

Open iBobik opened 1 year ago

iBobik commented 1 year ago

Let's track here what needs to be done and how.

I am going use @zxing/browser and wire it similarly like in the old version, but in a new API.

Any suggestions?

thegnuu commented 1 year ago

I think we should not use @zxing/browser, we should switch to https://github.com/undecaf/barcode-detector-polyfill since they have recently updated their readme and it should now be possible to bundle zbar. This would provide better results as @zxing/browser and would give us the opportunity to easily switch to the native BarcodeDetector once it becomes available.

I have a partially working version of this implementation somewhere, I can check if I am able to bundle this stuff somehow - but it might take me a few days until I have time to test it.

iBobik commented 1 year ago

Great. Fell free to share untested version, until end of this month I have some time to work on it.

iBobik commented 1 year ago

@thegnuu Any progress with web version? Next week I will work on it and it would be better for all if I can continue on your work than creating my own fork.

iBobik commented 1 year ago

I cannot wait, so started working on it: https://github.com/capacitor-community/barcode-scanner/pull/276

kaic0 commented 12 months ago

any update on this?