-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(IT Wallet): [SIW-1090] Add NFC enable instructions screen #5733
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5733 +/- ##
==========================================
+ Coverage 48.42% 48.86% +0.43%
==========================================
Files 1488 1605 +117
Lines 31617 32242 +625
Branches 7669 7809 +140
==========================================
+ Hits 15311 15755 +444
- Misses 16238 16420 +182
+ Partials 68 67 -1
... and 227 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
…n' into SIW-1090-add-nfc-instructions-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.
LGTM.
This approach doesn't seem to consider the edge case where you already have NFC enabled when landing on the authentication method screen and then you disable it. Pressing the "CIE + PIN" button will still yield a "Not implemented" alert. That's because we are dispatching the check when rendering the list. Do you think we should consider this edge case or can we leave this out in this PR? Beside this edge case, it seems to work fine now. |
You are right. I didn't notice this edge case, I assumed that the user would activate the NFC after the navigation, so the |
After some testing I found that we can't tell if the user enables NFC from the notification bar settings..
I think we can merge this PR and think about it later. What do you think? Not related to the above issue: i pushed this commit to add the correct settings screen linking: 80592f0 |
It's fine to leave this out from this PR. Thanks. |
Yes, could be better but does not respect what the screen says: Settings -> Search NFC -> Enable. @thisisjp should be ignore what the screen says and prefer a shorter path for the user? |
My bad, that's true, I'd rather stick to the instructions on the screen. It makes sense. LGTM. EDIT: We went for opening the NFC settings directly |
Warning
This PR depends on #5745
Short description
This PR adds the screen to display the instructions to enable the NFC for Android users.
List of changes proposed in this pull request
ItwIdentificationNfcInstructionsScreen
componentHow to test
In order to test this PR on dev environment, make sure to add this flag to your .env:
On a simulator
Go to Profile > IT Wallet > Issuing, clicking on CIE + PIN you should be able to see the NFC instructions screen.
On a physical Android device
Disable the NFC, then go to Profile > IT Wallet > Issuing, clicking on CIE + PIN you should be able to see the NFC instructions screen.
Preview