Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rapkatt opened this issue Oct 23, 2024 · 0 comments

Comments

@rapkatt
Copy link

rapkatt commented Oct 23, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant