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

Improve Error Handling for Home Screen Offline State #313

Open
RayBB opened this issue Dec 31, 2024 · 0 comments
Open

Improve Error Handling for Home Screen Offline State #313

RayBB opened this issue Dec 31, 2024 · 0 comments

Comments

@RayBB
Copy link
Contributor

RayBB commented Dec 31, 2024

Current Behavior

When attempting to open the app without an internet connection, users encounter an unfriendly error message:
ServerError: unknown error: ClientException with SocketException: Failed host lookup 'YYY.com' (OS Error: No address associated with hostname, errno = 7)

Expected Behavior

  • App should gracefully handle offline state
  • Show a user-friendly message indicating no internet connection

Steps to Reproduce

  1. Put device in airplane mode or disable internet connection
  2. Open Frigoligo app
  3. Observe error message

Additional Context

  • This affects the app's "Offline first" goal stated in the project philosophy

Proposed Solution

Implement proper offline state handling:

  1. Add connection state detection
  2. Show appropriate UI feedback for offline state

Screenshots

Spoiler

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant