RonnyWeiss / APEX-QR-Code-Scanner

This Region Plug-in is used to scan QR Codes. If any string has been detected an APEX Item can be set, Dynamic Action can be fired or JavaScript can be executed. Login for Demo is: user-demo / 123456@
MIT License
27 stars 11 forks source link

Read the same QRCode more than once #1

Closed tiagosteil closed 5 years ago

tiagosteil commented 5 years ago

Hi !

First of all, I would like to say that your plugin is very good! You did a great job and I believe it will help a lot of people, especially the APEX community. :smile:

Now, I need your help with my situation. I configured the plugin in my app and it is running 100%! But it has a behavior that I need to change.

When I read a QRCode the plugin returns its code and I can handle the code read in my app, however, it is not possible to re-read the same code ... How can I do this?

I need to be able to read the same code more than once, can you help me or tell me what I need to do for this?

RonnyWeiss commented 5 years ago

Sorry for late answer. I just updated the QR Code Plug-in in Version 1.4 with the possibility to Control the Scanner. You can fire Events on the QR Region:

$("#qrscanner_region").trigger("scannerPause"); => Pause the scanner

$("#qrscanner_region").trigger("scannerPlay"); => Restart the scanner from pause

$("#qrscanner_region").trigger("resetValue"); => Reset value to rescan the same QR Code if needed

So I think your request if solved, correct me if not and have a nice Sunday.