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

If the app is started without connectivity, once connectivity is restored, networkStatus event is not dispatched #5621

Open
2 of 14 tasks
giulitu95 opened this issue Oct 28, 2024 · 3 comments
Labels
bug Something is not working; the issue has reproducible steps and has been reproduced datastore Issues related to the DataStore Category

Comments

@giulitu95
Copy link

giulitu95 commented Oct 28, 2024

Description

If the app is started without connectivity, as soon as connectivity is restored, the networkStatus event is not dispatched by the datastore hub channel and the related callback is not triggered. I experience this problem only on iOS devices while on android devices the event is correctly dispatched.

Categories

  • Analytics
  • API (REST)
  • API (GraphQL)
  • Auth
  • Authenticator
  • DataStore
  • Notifications (Push)
  • Storage

Steps to Reproduce

  1. Start the application without connectivity after the amplify configuration
  2. Enable iternet connection on a iOS device
  3. The hub event is not dispatched and the callback is not triggered

Screenshots

No response

Platforms

  • iOS
  • Android
  • Web
  • macOS
  • Windows
  • Linux

Flutter Version

3.24.3

Amplify Flutter Version

2.4.2

Deployment Method

Amplify CLI (Gen 1)

Schema

No response

@github-actions github-actions bot added pending-triage This issue is in the backlog of issues to triage pending-maintainer-response Pending response from a maintainer of this repository labels Oct 28, 2024
@ekjotmultani
Copy link
Member

Hello @giulitu95, thanks for sharing this issue with us. We will reproduce the issue and investigate the cause. We will provide an update when we can.

@ekjotmultani ekjotmultani added to-be-reproduced Issues that have not been reproduced yet, but have reproduction steps provided datastore Issues related to the DataStore Category and removed pending-maintainer-response Pending response from a maintainer of this repository labels Oct 28, 2024
@giulitu95
Copy link
Author

giulitu95 commented Oct 29, 2024

After some tests I have discovered that network status events are correctly dispatched only after datastore tries to synchronize a model without internet connection. At this point a SocketException is raised (#5360) but the related network status event is not yet dispatched. All events start to be correctly generated only when user restore the internet connection.

@github-actions github-actions bot added the pending-maintainer-response Pending response from a maintainer of this repository label Oct 29, 2024
@ekjotmultani
Copy link
Member

Thank you for further testing and providing this info @giulitu95. We are attempting to reproduce this issue and will check the flow described here, will notify you once we have an update.

@ekjotmultani ekjotmultani added bug Something is not working; the issue has reproducible steps and has been reproduced and removed pending-maintainer-response Pending response from a maintainer of this repository labels Oct 31, 2024
@github-actions github-actions bot removed the pending-triage This issue is in the backlog of issues to triage label Nov 1, 2024
@tyllark tyllark removed the to-be-reproduced Issues that have not been reproduced yet, but have reproduction steps provided label Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working; the issue has reproducible steps and has been reproduced datastore Issues related to the DataStore Category
Projects
None yet
Development

No branches or pull requests

3 participants