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

Problem with scanning similar QR codes #2

Closed Yah0000 closed 5 years ago

Yah0000 commented 5 years ago

I try to scan few QR Code one after another. It works when the QR Code are completely different, but when i try to scan similar QR Code the APEX item connected with plugin no change. The same when I use "Execute JavaScript" mode with "alert". There is no effect when QR codes are simmilar.

My similar QR codes lead to URL:

http://localhost/ords11/f?p=TEST:GET:::::ITEM:12345
http://localhost/ords11/f?p=TEST:GET:::::ITEM:12346

Library recognise both codes but only when I refresh page. Have you any idea what is the problem?

QR code works well when I use library sample page: https://cozmo.github.io/jsQR/

tiagosteil commented 5 years ago

Hi,

This is the same problem I have, described at: https://github.com/RonnyWeiss/APEX-QR-Code-Scanner/issues/1

In my case, I edited the file "js/script.js" and removed the if command from line 178.

if (bStr.length! = code.data.length) {

I hope this solve for you too

Yah0000 commented 5 years ago

Thanks a lot!

I change to: if (bStr != code.data) { Now it works as I want. I think it should be change in repo.