[✓] Flutter (Channel stable, 3.27.3, on macOS 15.5 24F74 darwin-arm64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.3)
Problem Description
When using
flutter_workmanageron iOS, periodic tasks consistently receiveinputDataasnullwithin theWorkmanager().executeTaskcallback, despite being provided during registration. This issue is specific to iOS periodic tasks; Android periodic tasks and iOS one-off tasks function correctly.Setup & Environment
Prerequisites Confirmed:
Workmanager Version: 0.7.0
Xcode Version: 16.1
Swift Version: 6.0.2
iOS Deployment Target: 18.1
Steps Taken & Observed Behavior
AppDelegate.swiftRegistration:A periodic task with identifier
"my_task_name"is registered inAppDelegate.swift:Info.plistConfiguration:The task identifier
"my_task_name"is added toInfo.plist, and background processing and fetching capabilities are enabled.callbackDispatcherTask Registration:Inside the
Workmanager().executeTaskcallback (which is triggered for the periodic task), the task is re-registered on the Flutter side withinputData:inputDatareceived in the DartexecuteTaskcallback is alwaysnull.registerPeriodicTaskcalls from the Flutter side (which provideinputDataand other constraints) do not override or influence these tasks, even though logs indicate successful Flutter-side registration.Relevant Logs & Diagnostics
Task Registration Logs (Example):
flutter doctor -vOutput: