Closed MikeMcC399 closed 1 year ago
I submitted this just for information and to list the workarounds.
I think there is a flaw in the Firefox for Android browser when the Firefox built-in QR code scanner is used (tap the search field to get the Scan option to appear).
If Firefox is set as default browser, CWA is installed, and the camera app with built-in QR code recognition is used (instead of the built-in Firefox QR code scanner), then Firefox successfully sends the event URI to CWA.
When I looked at this with an Android debugger, I found that in the error case the URI passed to CWA is truncated and the log looks like this:
I/CheckInsViewModel$verifyUri: uri: https://e.coronawarn.app/en/
That is if the Firefox built-in QR scanner is used.
Using any other QR code scanner, when the process is successful, I see a much longer URI:
I/CheckInsViewModel$verifyUri: uri: https://e.coronawarn.app?v=1#CAESFAgBEghDV0EgVGVzdBoGT25saW5lGnYIARJggwLMzE153tQwAOf2MZoUXXfzWTdlSpfS99iZffmcmxOG9njSK4RTimFOFwDh6t0Tyw8XR01ugDYjtuKwjjuK49Oh83FWct6XpefPi9Skjxvvz53i9gaMmUEc96pbtoaAGhCNiJREEStS5-j30fh2F98DIgYIARAGGHg
So it seems that Firefox has an issue with cwa-event-landingpage
changing the URL, stripping out the ?v=1#.....
part and replacing it with /en/
.
Technical details
The Firefox issue is reproducible on other Android versions, such as Android 8.0 as well.
Describe the issue
Firefox's built-in QR code scanner fails to transfer a CWA event QR code to the CWA app. This seems to be a limitation of Firefox, not a bug in CWA.
If CWA is installed and there is internet connectivity then scanning an event QR code using the built-in Firefox scanner first results in a compatibility error message "Your browser is not compatible" followed by "Invalid QR Code ... Invalid URI - no matchedDescriptor".
I only could get the Firefox scan option to work under the following conditions:
Steps to reproduce
Workarounds
Scan a CWA event code using ...