Attach logs to background process
This commit is contained in:
parent
9032555cee
commit
0a70e9869f
1 changed files with 2 additions and 1 deletions
|
@ -112,10 +112,11 @@ Future<void> _runInBackground(String taskId) async {
|
|||
// https://stackoverflow.com/a/73796478/546896
|
||||
@pragma('vm:entry-point')
|
||||
void _headlessTaskHandler(HeadlessTask task) {
|
||||
print("_headlessTaskHandler");
|
||||
if (task.timeout) {
|
||||
BackgroundFetch.finish(task.taskId);
|
||||
} else {
|
||||
_runInBackground(task.taskId);
|
||||
_runBackgroundTask(task.taskId);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue