iOSBackgroundProcessingTask constant
- @Deprecated('Use custom iOS task names. This property will be removed.')
Use this constant inside your callbackDispatcher to identify when an iOS Background Processing via BGTaskScheduler occurred.
@pragma('vm:entry-point')
void callbackDispatcher() {
Workmanager().executeTask((taskName, inputData) {
switch (taskName) {
case Workmanager.iOSBackgroundProcessingTask:
stderr.writeln("A iOS BG processing task was initiated.");
break;
}
return Future.value(true);
});
}
Implementation
@Deprecated('Use custom iOS task names. This property will be removed.')
static const String iOSBackgroundProcessingTask =
"workmanager.background.task";