corona-warn-app / cwa-app-android

Native Android app using the Apple/Google exposure notification API. 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
2.44k stars 495 forks source link

Reference to file in QR scan from camera error message #4156

Closed MikeMcC399 closed 2 years ago

MikeMcC399 commented 3 years ago

Avoid duplicates

Technical details

Describe the bug

When a user tries to scan an incompatible QR code via the device's camera, the error message says to select a file (rather than another image).

The text comes from qr_code_no_suitable_qr_code_body

"The QR code cannot be canned (sic) by the Corona-Warn-App. Please select a file with a suitable QR code."

Steps to reproduce the issue

  1. Set locale to English (United States)
  2. Tap "Certificates" tab (tap "CONTINUE" if necessary)
  3. Tap "+ CERTIFICATE" and scan any non-CWA code such as

    QR Code DE12345678
  4. Note the pop-up message which refers to "file"

No_suitable_QR_code_EN_a_file

Expected behavior

The error message should not refer to a file if a QR code was scanned using the camera.

Possible Fix

The string qr_code_no_suitable_qr_code_body is being used. "The QR code cannot be canned (sic) by the Corona-Warn-App. Please select a file with a suitable QR code."

Either this string should be made neutral concerning the source of the QR code (camera or file), or the error message should be made dependent on the source of the incorrect QR code, i.e. different message depending on whether scan from camera or scan from file was used.


Internal Tracking-ID: EXPOSUREAPP-9763

Ein-Tim commented 2 years ago

PR: https://github.com/corona-warn-app/cwa-app-android/pull/4185

MikeMcC399 commented 2 years ago

The message in German in release/2.12.x is now "Der QR-Code kann nicht in der Corona-Warn-App gescannt werden. Bitte wählen Sie einen geeigneten QR-Code."

The English language message body (qr_code_no_suitable_qr_code_body) is still "The QR code cannot be scanned by the Corona-Warn-App. Please select a file with a suitable QR code." so presumably the translation has not yet been done and integrated.

MikeMcC399 commented 2 years ago

English text not yet fixed in tag/v2.12.0-RC1.

MikeMcC399 commented 2 years ago

This issue is resolved in tag/v2.12.0-RC2 through PR https://github.com/corona-warn-app/cwa-app-android/pull/4212.

https://github.com/corona-warn-app/cwa-app-android/blob/5af220165c63a398d921da77a3894a3cdfe89082/Corona-Warn-App/src/main/res/values/strings.xml#L939-L940

No suitable QR code

MikeMcC399 commented 2 years ago

This issue is verified as resolved in the 2.12.1 release.

Steps to verify

  1. Set locale to English (United States)
  2. Tap "Certificates" tab (tap "CONTINUE" if necessary)
  3. Tap "Scan" button in the lower navigation bar and scan any non-CWA code such as

    QR Code DE12345678
  4. Note the pop-up message which now generically says "Please select a suitable QR code." and no longer refers to "file"

No suitable QR code

dsarkar commented 2 years ago

Good morning @MikeMcC399 , thanks for the feedback!