-
Notifications
You must be signed in to change notification settings - Fork 136
[TTP] Handle VM death when TTP activity in foreground #8967
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
[TTP] Handle VM death when TTP activity in foreground #8967
Conversation
|
You can test the changes on this Pull Request by downloading an installable build, or scanning this QR code: |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## trunk #8967 +/- ##
============================================
+ Coverage 43.52% 43.54% +0.01%
- Complexity 4057 4063 +6
============================================
Files 841 841
Lines 44101 44115 +14
Branches 5756 5758 +2
============================================
+ Hits 19196 19210 +14
Misses 23213 23213
Partials 1692 1692
☔ View full report in Codecov by Sentry. |
…and-reconnection-2
…and-reconnection-2
AnirudhBhat
left a comment
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! I've left couple of non-blocking comment.
...test/kotlin/com/woocommerce/android/ui/payments/cardreader/CardReaderPaymentViewModelTest.kt
Show resolved
Hide resolved
…t emitted when the TTP payment is not in progress and the card reader is connected, and that payment collection doesn't start when the `AppKilledWhileInBackground` state is emitted.
Closes: #8140
Description
This PR brings another error that's shown when Activity and VM are killed during TTP activity being in the foreground. Also, it adds tracking of this situation so we can determine if this is not an ideal solution and needs to be improved
Testing instructions
Test TTP, IPP (including refund) with "don't keep activity" dev option ON and OFF
When it's on, TTP will fail with the screen that explains that this happened
Images/gif
05-05--15-56.mp4
RELEASE-NOTES.txtif necessary.