Skip to content
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

[Wallet] Fix "Shake-to-Contact" triggered while app is in background #6230

Merged
merged 5 commits into from
Dec 14, 2020

Conversation

jeanregisser
Copy link
Contributor

@jeanregisser jeanregisser commented Dec 14, 2020

Description

Fix "Shake-to-Contact" triggered while app is in background, which caused some confusion (see #6208)

Other changes

None

Tested

Tested Contact screen is not triggered while shaking the device with the app in the background.

Related issues

Backwards compatibility

Yes.

@jeanregisser jeanregisser requested a review from a team December 14, 2020 13:06
@jeanregisser jeanregisser added the automerge Have PR merge automatically when checks pass label Dec 14, 2020
Copy link
Contributor

@i1skn i1skn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🚢 it!

@mergify mergify bot merged commit 570f059 into master Dec 14, 2020
@mergify mergify bot deleted the jeanregisser/fix-shake branch December 14, 2020 23:48
mergify bot pushed a commit that referenced this pull request Dec 22, 2020
### Description

This fixes the regression described in #6314.

The change in #6230 made the underlying problem in `AlertBanner` more prominent as it caused the top level navigator to re-render on app state change (background/foreground/inactive) and hence the `AlertBanner`.

### Other changes

Globally mock `Animated.View` and `Animated.ScrollView` to prevent out of memory error when a ref is set.
See callstack/react-native-testing-library#539

Note: This change caused the Snapshot updates, because the styles are not flattened anymore for the mocked `Animated.View`.

### Tested

- Last alert is not redisplayed when navigating to different screens.
- New alert banner with same content can still be redisplayed when dispatched (causing a state change).

### Related issues

- Fixes #6314

### Backwards compatibility

Yes
@Lss-Ankit
Copy link

Hi @jeanregisser We have verified issue on V1.7.2(1004294329) & Test Flight build V1.7.2(39) and found that issue is fixed now user is not redirected to Contact screen if app is running in background.
Devices used: Google Pixel Xl (8.1) , iPhone SE 2 (14.2)

Also, we have checked this issue on Android 4 os and found crash,
Below is the crash ID and able to repro on V1.7.2(1004294329)

FYI:
We have asked this as need clarification in slack but as per the @gnardini it was expected behavior.
https://celo-org.slack.com/archives/CNCUN1R0D/p1606914489107200

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Have PR merge automatically when checks pass wallet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Shake-to-Contact" triggered while app is in background
3 participants