forked from firka/student-legacy
start on boot
This commit is contained in:
parent
8f85c6a33b
commit
0274c2f070
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user