Cwa-wishlist: [Feature Request] Entering QR-Code hex values manually if QR-Scan fails

Created on 30 Dec 2020  路  5Comments  路  Source: corona-warn-app/cwa-wishlist

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

feature request mirrored-to-jira

Most helpful comment

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>

All 5 comments

Related:

  • #227
  • #224

Also relevant:

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

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>

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


Corona-Warn-App Open Source Team

Was this page helpful?
0 / 5 - 0 ratings

Related issues

achisto picture achisto  路  3Comments

MikeMcC399 picture MikeMcC399  路  3Comments

MikeMcC399 picture MikeMcC399  路  4Comments

gempa-dirk picture gempa-dirk  路  3Comments

durator picture durator  路  3Comments