From 0a70e9869fd0d5fcebd65915fabe5525edf54379 Mon Sep 17 00:00:00 2001 From: Neeraj Gupta <254676+ua741@users.noreply.github.com> Date: Tue, 18 Oct 2022 13:30:29 +0530 Subject: [PATCH] Attach logs to background process --- lib/main.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/main.dart b/lib/main.dart index cd23c1b5f..76828f42f 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -112,10 +112,11 @@ Future _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); } }