File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ void main() {
3636 callbackDispatcher, // The top level function, aka callbackDispatcher
3737 isInDebugMode: true // If enabled it will post a notification whenever the task is running. Handy for debugging tasks
3838 );
39- Workmanager().registerOneOffTask("1 ", "simpleTask"); // Android and 'iOS Processing task' (see options below)
39+ Workmanager().registerOneOffTask("task-identifier ", "simpleTask"); // Android and 'iOS Processing task' (see options below)
4040 if (Platform.isIOS) {
4141 Workmanager().registerAppRefreshTask(initialDelay: const Duration(minutes: 15), frequency: const Duration(minutes: 60)); // iOS Only
4242 }
@@ -98,7 +98,7 @@ iOS supports **One off tasks** with a few basic constraints
9898
9999``` dart
100100Workmanager().registerOneOffTask(
101- "task-identifier",
101+ "task-identifier", // Ignored on iOS
102102 simpleTaskKey, // Ignored on iOS
103103 initialDelay: Duration(minutes: 30),
104104 constraints: Constraints(
@@ -107,7 +107,7 @@ Workmanager().registerOneOffTask(
107107 // require external power
108108 requiresCharging: true,
109109 ),
110- inputData: ... // Android Only
110+ inputData: ... // Android Only ?
111111);
112112```
113113
You can’t perform that action at this time.
0 commit comments