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

Fallback mode when offline or not connected to the Backend Server #50

Open
6 tasks
jankapunkt opened this issue Feb 4, 2022 · 0 comments
Open
6 tasks
Labels
future enhancement New feature or request UX

Comments

@jankapunkt
Copy link
Member

jankapunkt commented Feb 4, 2022

We need a fallback mode in case connection is offline or the backend is not reachable.

  • Keep the current user in a local session, so we can access it when there is no connection to the server
  • Keep a copy for the next N units locally, so we can still provide units to work on
  • Add to the top-navbar a notification symbol for offline, when it's clicked show a modal with short info about connection status
  • keep reconnecting to servers permanently, but with much longer interval, like each 30 seconds
  • once reconnected attempt to sync all locally stored data, that has been created during offline mode
  • if app-backend is not available, we should get content via HTTP directly from content-server

consider sqlite: https://implementationdetails.dev/blog/2020/05/03/react-native-offline-first-db-with-sqlite-hooks/

@jankapunkt jankapunkt added future enhancement New feature or request UX labels Feb 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
future enhancement New feature or request UX
Projects
None yet
Development

No branches or pull requests

1 participant