flutter_workmanager icon indicating copy to clipboard operation
flutter_workmanager copied to clipboard

iOS Periodic Task Not Triggering callbackDispatcher on Real Device but Works on Simulator

Open rapkatt opened this issue 1 year ago • 16 comments

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

Screenshot 2024-10-24 at 00 03 06

Screenshot 2024-10-24 at 00 03 44

Screenshot 2024-10-24 at 00 04 07

Screenshot 2024-10-24 at 00 04 33

rapkatt avatar Oct 23 '24 18:10 rapkatt