-
Notifications
You must be signed in to change notification settings - Fork 492
QR Code scanning to check-in (EXPOSUREAPP-5305) #2507
QR Code scanning to check-in (EXPOSUREAPP-5305) #2507
Conversation
…-qrcode-scan-chenckin
Kudos, SonarCloud Quality Gate passed! |
} | ||
|
||
@Test | ||
fun testDeepLinkLowercase() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are you testing here? There is no assert? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Testing that the activity is launching when an intent with data=https://coronawarn.app/E1/SOME_PATH_GOES_HERE
is fired
as you can see for cases below it will throw a RuntimeException
to make sure those links are not handled by this activity
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Tested on Samsung S20+ and Google Pixel 3A.
Shortcuts work as before.
Scanning the QR code from an external app also doesn't skip onboarding, if not yet done, and then navigates to the Confirmation Screen.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deeplinking works nice.
On Samsung S8 I had an issue with scanning QR code with built-in scanner: after scanning redirected to Galaxy Notes application, meanwhile other QR-code links works fine. After rebuilding QR code built-in scanner worked fine too. Probably some issues with test code.
With other QR-scanning apps no issues - everything works great 🚀
1- Shortcuts scenarios MUST function as before
2- Opening a deep-link while user is not onboarded yet
3- Opening a deep-link when user is onboarded
4- Opening a deep-link when user is onboarded ,but delta onboarding should be shown
5- Opening a deep-link when App is already open
6- Shortcuts
Testing
Scan Fragment
-> navigates to Confirmation screenQr-code Scanner
-> click on the link -> choose CWA to handle it -> navigates to Confirmation screenCoronaWarnApp-Event.pdf