-
Notifications
You must be signed in to change notification settings - Fork 28
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
fix: show no connection banner faster [#WPB-11568] #3776
Conversation
Built wire-android-staging-compat-pr-3776.apk is available for download |
Built wire-android-dev-debug-pr-3776.apk is available for download |
Built wire-android-staging-compat-pr-3776.apk is available for download |
Built wire-android-dev-debug-pr-3776.apk is available for download |
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.
Good idea to solve this issue ! 💯
Quality Gate passedIssues Measures |
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.