bitpay / cordova-plugin-qrscanner

A fast, energy efficient, highly-configurable QR code scanner for Cordova apps and the browser.
MIT License
567 stars 773 forks source link

Live QR Codes #395

Open rolinger opened 1 year ago

rolinger commented 1 year ago

I have been using this plugin for a while with no issues (though I haven't upgraded to Cordova 11 yet where I think this native plugin starts having issues). But now I have a need to implement Live QR/Bar codes and don't know where to begin with it similar to how TicketMaster is generating them in their app now.

Does anyone know a plugin that can do this or know of a way to implement them within Cordova...particularly within Ionic?

Willian199 commented 1 year ago

See my fork. https://github.com/Willian199/cordova-plugin-multiple-barcode-scan You can do multiple scan

rolinger commented 1 year ago

@Willian199 - I read through your fork and saw very little reference to multiplescan. Can you elaborate here or in your own DOCs how multiplescan allows for Live QR codes? Or maybe explain the link between them? Maybe I just don't understand how a live qr code works - thus my questions. My assumption is/was that a moving bar flashed back and forth over the qr code that somehow interfered with the ability to take a screen shot of the code (to prevent it from being sent to other people who would then reuse the code). The TicketMaster reference in my OP though is a standard bar code, not a qr code.

Willian199 commented 1 year ago

@rolinger When calling BBscanner,scan({multipleScan = true}, callback). It will be possible to read several QRcodes in sequence. When identifying a value, it is passed to the callback, but it will continue scanning for a next QRcode.

If multipleScan false, after identifying the QRcode, it will call the "destroy", stopping reading new QRcodes.