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

fix: show no connection banner faster [#WPB-11568] #3776

Merged
merged 3 commits into from
Jan 2, 2025

Conversation

sergeibakhtiarov
Copy link
Contributor

@sergeibakhtiarov sergeibakhtiarov commented Dec 30, 2024

SpikeWPB-11568 [Android] Investigate where the exponential backoff for no network connection can be short-circuited

https://wearezeta.atlassian.net/browse/WPB-11568

What's new in this PR?

Showing the No Connection banner instantly when Internet connection is lost.

Issues

After turning on Airplane mode the 'Waiting for connection' banner may be shown with a long delay.

Causes

Displaying the banner is based on observed sync status which is set to Failed when WebSocket throws exception on connection loss. The problem is that the WebSocket is not guaranteed to detect the connection loss immediately and sometimes it throws exception only after the failed ping attempt (in 20 sec).

Solutions

Observe network state in addition to sync state to detect faster the 'no connection' situation and show the banner instantly.

@echoes-hq echoes-hq bot added the echoes: product-roadmap Work aligned with the customer-announced roadmap, targeting a specific release date. label Dec 30, 2024
Copy link
Contributor

Built wire-android-staging-compat-pr-3776.apk is available for download

Copy link
Contributor

Built wire-android-dev-debug-pr-3776.apk is available for download

Copy link
Contributor

Built wire-android-staging-compat-pr-3776.apk is available for download

Copy link
Contributor

Built wire-android-dev-debug-pr-3776.apk is available for download

Copy link
Contributor

@yamilmedina yamilmedina left a comment

Choose a reason for hiding this comment

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

Good idea to solve this issue ! 💯

Copy link

sonarqubecloud bot commented Jan 2, 2025

@sergeibakhtiarov sergeibakhtiarov added this pull request to the merge queue Jan 2, 2025
Merged via the queue into develop with commit 885ad69 Jan 2, 2025
11 of 13 checks passed
@sergeibakhtiarov sergeibakhtiarov deleted the fix/show-no-connection-message-faster branch January 2, 2025 18:52
@echoes-hq echoes-hq bot added echoes: product-roadmap/feature Work contributing to adding a new feature as part of the product roadmap. and removed echoes: product-roadmap Work aligned with the customer-announced roadmap, targeting a specific release date. labels Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
echoes: product-roadmap/feature Work contributing to adding a new feature as part of the product roadmap. size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants