arnef / coronaapp

Corona App for Ubuntu Touch
Other
7 stars 9 forks source link

scanning of code is difficult and sometimes does not work at all #5

Open Danfro opened 3 years ago

Danfro commented 3 years ago

My own experience, backed by several other users, show, that scanning of the printed QR codes is quite difficult and only works sometimes.

Scanning with artificial light (in the evening) did not work at all with my E5. Same for other users. With daylight it worked better. Using Xperia X, with a better camera, worked better too.

But still, for some users it fails to scan the code entirely. Scanning the same code under the same condition with Tagger app works flawless. So there seems to be something different here.

One workaround is, to scan the code and read it from screen in bigger size.

gbdomubpkm commented 3 years ago

Thank you very much for the app. I confirm it works on the Volla (arm64) but sometimes capricious.

yaemmanuelli commented 3 years ago

I tried to scan a French UE certificate on a Volla phone, from a computer screen : the flash light is activated although not needed. The scan never succeeds, maybe because of the reflection of the flashlight ? The scan works with Tagger, but something goes wrong with the Copy/Paste process : there is no reaction after pressing "Copy to clipboard" on Tagger, and pressing the Paste top right button on Corona does not succeed : have I missed anything ? Thanks!

arnef commented 3 years ago

I tried to scan a French UE certificate on a Volla phone, from a computer screen : the flash light is activated although not needed. The scan never succeeds, maybe because of the reflection of the flashlight ? The scan works with Tagger, but something goes wrong with the Copy/Paste process : there is no reaction after pressing "Copy to clipboard" on Tagger, and pressing the Paste top right button on Corona does not succeed : have I missed anything ? Thanks!

sounds like you are doing everything right. Give it a try with latest version (1.2.2). The scanned qr-codes must start with HC1: if it does not, it is not a certificate that the app can handle - i should probably show an error message in this case ;)

yaemmanuelli commented 3 years ago

I retried scanning and copying to the clipboard on tagger: then after updating Corona to 1.2.2, I attempted pasting from Corona's scan screen, top right button, and the application froze. Eventually pasting into Notes proved that the code was well copied to clipboard by Tagger. The code starts with HC1: , shown in Notes. Tagger tells me that the "Content length" of the code is 487.

Thieb67k commented 3 years ago

Hello, I confirm what yaemmanuelli describes in the last message. From Tagger, the QRcode is read quickly (give me 567 characteres). I cannot manage to scan with CoronaApp and freeze when I try to copy-paste the link from Tagger.

By the way, the app cannot scan a previous QRcode that worked previously (deleted beforhand)

Best,

(OTA-18 on nexus4, CoronaApp version: 1.2.3)

gbdomubpkm commented 3 years ago

I have rescanned my certificates from the app V 1.2.4 and it works better for me with the Volla (RC 31) but not always a first time success. I like your blue color for the full vaccination certificate.

carlgust commented 3 years ago

I was also not able to scan the QR-code with the corona app. My workaround is:

  1. Scan it with Tagger.
  2. Touch the clipboard icon.
  3. Launch CoronaApp. Result: The certificate appears in the CoronaApp. But then I have the same behaviour as Issue: # Started only the first time #12
    I have a Nexus5 OTA-18 and my apps are all up-to-date.
Vistaus commented 3 years ago

Same issue here: even in broad daylight, it doesn't scan the QR code. I tried it many times now. It shows the camera preview just fine, but it doesn't scan anything.

Device: Xiaomi Poco F1 UT version: latest stable App version: 1.2.4 and 1.2.5

@carlgust's workaround doesn't work for me.

arnef commented 3 years ago

Whats the problem with the workaround? You may share the logs? Version 1.2.5 works mutch better on my xperia x than the previous one. On the bq e4.5 everything works fine too

Vistaus commented 3 years ago

The problem with the workaround is that I press the clipboard icon in Corona App, but nothing happens, even though I really did copy the QR code in Tagger. I'll see I can find a log and share it.

arnef commented 3 years ago

Does the copied value starts with "HC1:"?

Vistaus commented 3 years ago

No, with “NL2:”.

Danfro commented 3 years ago

I just tried again with another Xperia X. Scanning the codes (indoors, artificial bright lights) did not work at all. I tried two codes.

Scanning the same codes with Tagger worked smoothly. Import also worked instantly for both codes.

If the scan would not work with tagger I would think size, complexity and print quality of the codes do not match good. But since that works... I am lost.

--

arnef commented 3 years ago

No, with “NL2:”.

https://github.com/arnef/coronaapp/blob/ed87328ba289f42c0675b974b3b8ded5964f454d/qml/pages/QRCodeScanner.qml#L34

It must start with "HC1" otherwise the app ignores the code...you can change this line and check if the code is decoded correctly

Vistaus commented 3 years ago

But the code from the Dutch certificate really does start with NL2. Even if I change that line, how am I sure it's going to work when someone at an event scans it?

Vistaus commented 3 years ago

I just changed it to HC1 and pressed the paste button in Corona App but it just returns me to the start screen without saving anything.

arnef commented 3 years ago

But the code from the Dutch certificate really does start with NL2. Even if I change that line, how am I sure it's going to work when someone at an event scans it?

the app doesn't manipulates the value. just save it to your device and displays it as it is...the prefix is only important to decode and display the information inside the app

Vistaus commented 3 years ago

Good to know, thanks! :)

But it didn't work (see my previous comment).

arnef commented 3 years ago

the decoding differs from the EU Certificates...so at the moment your certificate is not supported...sorry

Vistaus commented 3 years ago

Alright, no problem. Will you be able to add support?

Strange that it differs, though. As a Dutch citizen, I'm part of the EU. :/

Danfro commented 3 years ago

Oh, I just updated to v1.2.5 (wasn't available earlier?). That works great! Whatever you did, really does make a difference. Great!

arnef commented 2 years ago

Alright, no problem. Will you be able to add support?

Strange that it differs, though. As a Dutch citizen, I'm part of the EU. :/

@Vistaus I just uploaded an pre-release here which should be able to handle your certificate

Vistaus commented 2 years ago

@Vistaus I just uploaded an pre-release here which should be able to handle your certificate

Yay, thanks! I can confirm that it now handles it. 🙂 Although scanning from the app once again didn't work, but copying from Tagger did work.