start on boot
This commit is contained in:
@@ -131,7 +131,8 @@ Widget errorBuilder(FlutterErrorDetails details) {
|
|||||||
requiresCharging: false,
|
requiresCharging: false,
|
||||||
requiresStorageNotLow: false,
|
requiresStorageNotLow: false,
|
||||||
requiresDeviceIdle: false,
|
requiresDeviceIdle: false,
|
||||||
requiredNetworkType: NetworkType.ANY
|
requiredNetworkType: NetworkType.ANY,
|
||||||
|
startOnBoot: true
|
||||||
), (String taskId) async { // <-- Event handler
|
), (String taskId) async { // <-- Event handler
|
||||||
print("[BackgroundFetch] Event received $taskId");
|
print("[BackgroundFetch] Event received $taskId");
|
||||||
NotificationsHelper().backgroundJob();
|
NotificationsHelper().backgroundJob();
|
||||||
|
|||||||
Reference in New Issue
Block a user