disable background fetch for debug builds for now, causing debugger issues
This commit is contained in:
@@ -66,6 +66,7 @@ class _MainWidget extends HookConsumerWidget {
|
||||
|
||||
await ref.read(appInitializationServiceProvider.notifier).initialize();
|
||||
|
||||
if (!kDebugMode) {
|
||||
await BackgroundFetch.configure(
|
||||
BackgroundFetchConfig(
|
||||
minimumFetchInterval: 15,
|
||||
@@ -88,6 +89,7 @@ class _MainWidget extends HookConsumerWidget {
|
||||
}
|
||||
},
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
return DynamicColorBuilder(
|
||||
@@ -141,7 +143,9 @@ void main() async {
|
||||
|
||||
await filesystem.init();
|
||||
|
||||
if (!kDebugMode) {
|
||||
await BackgroundFetch.registerHeadlessTask(backgroundFetch);
|
||||
}
|
||||
|
||||
if (kDebugMode) {
|
||||
final serviceProtocolInfo = await Service.getInfo();
|
||||
|
||||
Reference in New Issue
Block a user