AngleSharp / AngleSharp/AngleSharp.Io

Implement Background Sync and Periodic Sync (Minimal)

Open
#44 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

api enhancement up-for-grabs
Dominant language
C#
Stars
37
Forks
13
PR merge metrics
No merged PRs in 30d

Description

Proposal

Add a minimal registration surface for one-off and periodic sync tasks tied to Service Worker registrations.

Scope:

  • Expose sync and periodicSync managers on service worker registration.
  • Support register, getTags, and unregister patterns.
  • Add scheduler hook via platform interface.
    Technical Notes:
  • Keep scheduling backend injectable and deterministic in tests.
  • Validate origin and registration constraints.
    Acceptance Criteria:
  • Tags can be registered, queried, and removed.
  • Duplicate registration semantics are consistent.
  • Tests verify schedule dispatch invocation and permission gating.
    Out of Scope:
  • Real OS wake-up scheduling behavior.
  • Complex power/network heuristics.

Description

Introduce minimal Background Sync and Periodic Background Sync support on service worker registrations, including register/getTags/unregister operations backed by an injectable scheduler.

Background

Apps often defer network operations to stable connectivity windows. Even a reduced API helps test deferred work orchestration and tag-based job management.

Specification

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start from the service worker registration surface and the platform interface mentioned in the proposal. Trace how an injectable scheduler can support sync and periodicSync registration, tag queries, removal, validation, and permission gating. Done means deterministic tests cover dispatch invocation, duplicate registration semantics, and the stated registration operations.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.