Skip to content

Add network monitor during app start #5581

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

Merged
merged 11 commits into from
Aug 5, 2025

Conversation

fpetrovski
Copy link
Contributor

Summary

This change adds a network monitor on app start, before launching the WebView. With this addition the launch activity presenter can observe the network status and react on 4 different states:
READY_LOCAL,
READY_REMOTE,
CONNECTING,
UNAVAILABLE,

If there is no network available an alert dialog is displayed, notifying the user to check their connection.

This change fixes #5524

Checklist

  • New or updated tests have been added to cover the changes following the testing guidelines.
  • The code follows the project's code style and best_practices.
  • The changes have been thoroughly tested, and edge cases have been considered.
  • Changes are backward compatible whenever feasible. Any breaking changes are documented in the changelog for users and/or in the code for developers depending on the relevance.

Screenshots

The message used in the alert dialog is: Network unavailable, please enable your connection
Alert Message

Any other notes

@fpetrovski fpetrovski changed the title Fix Add network monitor during app start Jul 22, 2025
@fpetrovski fpetrovski force-pushed the bugfix/network-check-on-start branch from 7ae9c4e to c5f5b97 Compare July 22, 2025 19:59
@TimoPtr TimoPtr self-requested a review July 23, 2025 06:59
@fpetrovski fpetrovski force-pushed the bugfix/network-check-on-start branch from 18213e2 to 5d38c73 Compare July 29, 2025 20:28
Copy link
Collaborator

@TimoPtr TimoPtr left a comment

Choose a reason for hiding this comment

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

Looks good 👍🏻 Let's wait for @jpelgrom to take a look too he has more history than me on these topics.

@TimoPtr TimoPtr merged commit 5cf4601 into home-assistant:main Aug 5, 2025
32 of 33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Home App (Launcher) fails to load on first start after device boot, network not ready
4 participants