TF-1861 Config and abstraction work manager

(cherry picked from commit ee2dca9b34a907c8356ceccf0b23efba2893a01c)
This commit is contained in:
dab246
2023-05-23 12:56:21 +07:00
committed by Dat Vu
parent 9f402b9ec1
commit b1af1d8533
15 changed files with 329 additions and 4 deletions
@@ -0,0 +1,8 @@
import 'package:tmail_ui_user/features/offline_mode/controller/work_scheduler_controller.dart';
import 'package:workmanager/workmanager.dart';
@pragma('vm:entry-point')
void callbackDispatcher() {
Workmanager().executeTask(WorkSchedulerController().handleBackgroundTask);
}