start on boot

This commit is contained in:
hihihaha 2023-06-10 20:43:03 +02:00
parent 8f85c6a33b
commit 0274c2f070

View File

@ -131,7 +131,8 @@ Widget errorBuilder(FlutterErrorDetails details) {
requiresCharging: false,
requiresStorageNotLow: false,
requiresDeviceIdle: false,
requiredNetworkType: NetworkType.ANY
requiredNetworkType: NetworkType.ANY,
startOnBoot: true
), (String taskId) async { // <-- Event handler
print("[BackgroundFetch] Event received $taskId");
NotificationsHelper().backgroundJob();