flutter_workmanager
flutter_workmanager copied to clipboard
iOS Periodic Task Not Triggering callbackDispatcher on Real Device but Works on Simulator
App does not trigger the callbackDispatcher method on a real iOS device. However, the task works as expected on the iOS simulator.
Steps to Reproduce: 1. Schedule the task with a repeat interval (e.g., 15 min). 2.Deploy the app to a real iOS device and wait for the periodic task to trigger. 3.The task not trigger callbackDispatcher on the real device.
Test Methods: - Waited more than an hour to see if the task triggers on the real device. - Used Xcode's Debug -> Simulate background fetch to manually trigger the task.
Results: - The task triggers and executes callbackDispatcher as expected on the iOS simulator. - The task does not trigger at all on the real device, even after waiting or simulating a background fetch in Xcode.
Expected Behavior - The periodic task should trigger the callbackDispatcher method both on the iOS simulator and real devices.
Flutter version: 3.24.3
WorkManager version:
git: url: https://github.com/fluttercommunity/flutter_workmanager.git
ref: b783000
iOS version: 17.5.1
Device: 11 Pro Max