Infrastructure medium complexity mobile
0
Dependencies
1
Dependents
0
Entities
0
Integrations

Description

Wraps the flutter_workmanager plugin to abstract platform-specific background task scheduling across Android and iOS. Registers the periodic sync task with platform-appropriate constraints (network required, battery not low), dispatches task callbacks to the Background Sync Service, and respects OS-imposed background execution limits for both platforms.

Feature: Background Sync

workmanager-adapter

Responsibilities

  • Register periodic background sync tasks with flutter_workmanager with correct platform constraints
  • Route task callback invocations to the BackgroundSyncService handler
  • Cancel or reschedule tasks on demand
  • Handle platform differences between Android WorkManager and iOS BGTaskScheduler

Interfaces

registerPeriodicTask(taskName: String, frequency: Duration): Future<void>
cancelTask(taskName: String): Future<void>
onBackgroundTaskTriggered(taskName: String): Future<bool>

Relationships

Dependents (1)

Components that depend on this component