Skip to content

Commit 63a1b93

Browse files
committed
Merge branch 'main' of https://github.com/fluttercommunity/flutter_workmanager into flutter3
# Conflicts: # README.md # ios/Classes/SwiftWorkmanagerPlugin.swift
2 parents 3bd58bc + 80518ed commit 63a1b93

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
100100
Workmanager().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

0 commit comments

Comments
 (0)