Skip to content

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

Open
@rapkatt

Description

@rapkatt

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions