corona-warn-app / cwa-wishlist

Central repository to collect community feature requests and improvements. The CWA development ends on May 31, 2023. You still can warn other users until April 30, 2023. More information:
https://coronawarn.app/en/faq/#ramp_down
Apache License 2.0
105 stars 14 forks source link

[Feature Request] Entering QR-Code hex values manually if QR-Scan fails #302

Open grimch opened 3 years ago

grimch commented 3 years ago

Today I was tested on Corona and got the print out containing the QR-code. Unfortunately this print out was somewhat "pale" and therefore the app was not able to scan the QR-Code. Initially I tried to use the hex code beneath the QR and generate my own code using one of the web sites offering this (e.g. http://goqr.me/de/) but failed to get a proper result this way.

Finally with some tweaks I was able to scan the code with some other tablet device and a special QR-app from which I scanned it into the Corona Warn App.

Looking a bit closer at the the scanned text in the QR-app I saw (and later verified via "QRScanResult.kt" in the project sources), that the QR-Code expected is the format:

localhost/?

Example: localhost/?EB6EC4-30CEB903-2F75-4225-9G72-4ED0C2F37F99 (the above might not be valid because it is just a modified version of my ow QR-code)

Waht I would have appreciated is an option to enter the hex code directly via some dialog - of course without the need to prefix the "localhost/?" piece.


Internal Tracking ID: EXPOSUREAPP-3415, EXPOSUREAPP-5095

Ein-Tim commented 3 years ago

Related:

MikeMcC399 commented 3 years ago

Also relevant:

dsarkar commented 3 years ago

@grimch, @MikeMcC399, @Ein-Tim, Thanks for contributing. Not completely new, however, we will raise this issue again. Best, DS

grimch commented 3 years ago

As an alternative to the FAQ may be you could provide something like the following as a manual code generator on the corona app home page. It's nothing but a wrapper for the google API , adding the "https://localhost/?" prefix:

<html>
  <head>
    <script>
      function generateQRCode() {
        var qrURL = "https://localhost/?" + document.forms['form1'].elements['qr_hex'].value;
        var qrElement = document.getElementById('qrcode');
        qrElement.innerHTML = "<img class='img-responsive' alt='QR Code' src='https://chart.googleapis.com/chart?cht=qr&choe=UTF-8&chld=L|0&chs=250x250&chl=" + encodeURIComponent(qrURL) + "' />";
      }
    </script>
    <title>PCR-Test QR-Code Generator</title>
  </head>
  <body>
    <h1>PCR-Test QR-Code Generator</h1>
    <form name="form1">
      Enter the text beneath your QR-code: 
      <input type = "text" size="43" name="qr_hex">
      <button type="button" onclick="generateQRCode()">Generate QR-code</button>
    </form>
    <div id="qrcode" style="margin: 0px auto;"></div>
  </body>
</html>
dsarkar commented 3 years ago

@grimch Thanks for contributing here. We have forwarded both proposals to the developers. Best wishes, DS


Corona-Warn-App Open Source Team

dsarkar commented 3 years ago

EXPOSUREAPP-5095

MikeMcC399 commented 3 years ago

Is this a duplicate of "Allow manual code entry to register COVID test (without QR scan)" https://github.com/corona-warn-app/cwa-wishlist/issues/227?

Ein-Tim commented 3 years ago

@MikeMcC399

Definitely closely related. However, @dsarkar wrote here:

[...] Not completely new, however, we will raise this issue again. [...]