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

Description

Provides a unified interface over the flutter_workmanager plugin, abstracting iOS BGTaskScheduler and Android WorkManager platform differences. Handles plugin initialization, callback dispatcher registration, and translates platform-agnostic task configurations into the correct native scheduling parameters for each platform.

Feature: Background Sync

workmanager-adapter

Responsibilities

  • Initialize flutter_workmanager plugin and register the callback dispatcher
  • Abstract iOS BGTaskScheduler and Android WorkManager API differences
  • Translate task configs into platform-native scheduling parameters
  • Handle plugin exceptions and surface them as typed errors

Interfaces

initialize(callbackDispatcher)
registerOneOffTask(uniqueName, taskName, config)
registerPeriodicTask(uniqueName, taskName, frequency, config)
cancelByUniqueName(uniqueName)
cancelAll()
getPlatformInfo()

Relationships

Dependents (1)

Components that depend on this component