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

Background Sync #19

Open
12 tasks
StanleyMasinde opened this issue Jan 20, 2025 · 0 comments
Open
12 tasks

Background Sync #19

StanleyMasinde opened this issue Jan 20, 2025 · 0 comments

Comments

@StanleyMasinde
Copy link
Member

StanleyMasinde commented Jan 20, 2025

Description:
Enable the generation of code to integrate Background Sync into the PWA, allowing the app to automatically sync data when the user regains connectivity.

Deliverables:

  • Automatically generate the service worker code to handle background sync events.
  • Implement the logic to define tasks that should be synced in the background, such as:
    • Offline form submissions.
    • Queued API requests.
  • Allow developers to configure background sync intervals and conditions for syncing data (e.g., when network becomes available).
  • Ensure proper error handling for failed sync attempts and retries.
  • Provide fallback options for browsers that do not support Background Sync, with clear instructions on how to handle these cases.
  • Generate a helper script or API for managing the sync state (e.g., checking sync status, retrying failed sync).
  • Include automatic registration of background sync tasks during app installation.
  • Provide documentation on how to configure and modify the background sync tasks for specific use cases.
  • Allow testing of background sync in different network conditions (offline, low connectivity, etc.).
  • Ensure the background sync process is transparent to the user, with proper feedback when sync is complete or fails.
@StanleyMasinde StanleyMasinde moved this to Backlog in PWA generator Jan 20, 2025
@StanleyMasinde StanleyMasinde changed the title Push notifications Background Sync Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

1 participant