Skip to content

Schedule background sync jobs#398

Open
MaryammAli wants to merge 2 commits into
BlockHaven-Labs:mainfrom
MaryammAli:Schedule-Background-Sync-Jobs
Open

Schedule background sync jobs#398
MaryammAli wants to merge 2 commits into
BlockHaven-Labs:mainfrom
MaryammAli:Schedule-Background-Sync-Jobs

Conversation

@MaryammAli
Copy link
Copy Markdown
Contributor

Implement Background Sync Job Scheduling

Overview

This PR introduces background job scheduling for periodic data synchronization to keep app data fresh without requiring manual user interaction.

Changes Made

  • Added a new background sync scheduler service:

    • mobile/services/sync/scheduler.ts
  • Evaluated and integrated a background job scheduling solution (e.g. expo-background-fetch).

  • Implemented periodic sync execution at configurable intervals.

  • Added safeguards to respect:

    • battery usage constraints
    • network availability
    • platform background execution limitations
  • Improved scheduling configuration to allow easy interval and behavior adjustments.

Features Added

  • Automatic background data synchronization.
  • Configurable sync intervals.
  • Battery-conscious scheduling behavior.
  • Network-aware sync execution.
  • Centralized scheduler management for future sync tasks.

Acceptance Criteria

  • Background scheduler triggers reliably while the app is in the background.
  • Jobs do not execute excessively or negatively impact battery life.
  • Scheduling configuration is easy to modify and maintain.
  • Sync operations remain stable across app lifecycle events.

Notes

  • Scheduler implementation is designed to be extensible for additional background tasks.
  • Existing sync logic remains reusable and isolated from scheduling concerns.
  • Configuration values can be adjusted without major code changes.
    Closes Schedule Background Sync Jobs #252

Implement-Pull-to-Refresh-Across-Screens
Schedule-Background-Sync-Jobs
@vercel
Copy link
Copy Markdown

vercel Bot commented May 29, 2026

@MaryammAli is attempting to deploy a commit to the aminubabafatima8-gmailcom's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 29, 2026

@MaryammAli Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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

Successfully merging this pull request may close these issues.

Schedule Background Sync Jobs

1 participant