Skip to content

Comments

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

Merged
sergeibakhtiarov merged 3 commits intodevelopfrom
fix/show-no-connection-message-faster
Jan 2, 2025
Merged

fix: show no connection banner faster [#WPB-11568]#3776
sergeibakhtiarov merged 3 commits intodevelopfrom
fix/show-no-connection-message-faster

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
@github-actions
Copy link
Contributor

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

@github-actions
Copy link
Contributor

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

@github-actions
Copy link
Contributor

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

@github-actions
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 ! 💯

@sonarqubecloud
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
9 of 10 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