disable background fetch for debug builds for now, causing debugger issues

This commit is contained in:
Fabian Freund
2025-12-18 18:33:51 +01:00
parent 63a7071809
commit 4ce8b87745
+4
View File
@@ -66,6 +66,7 @@ class _MainWidget extends HookConsumerWidget {
await ref.read(appInitializationServiceProvider.notifier).initialize(); await ref.read(appInitializationServiceProvider.notifier).initialize();
if (!kDebugMode) {
await BackgroundFetch.configure( await BackgroundFetch.configure(
BackgroundFetchConfig( BackgroundFetchConfig(
minimumFetchInterval: 15, minimumFetchInterval: 15,
@@ -88,6 +89,7 @@ class _MainWidget extends HookConsumerWidget {
} }
}, },
); );
}
}); });
return DynamicColorBuilder( return DynamicColorBuilder(
@@ -141,7 +143,9 @@ void main() async {
await filesystem.init(); await filesystem.init();
if (!kDebugMode) {
await BackgroundFetch.registerHeadlessTask(backgroundFetch); await BackgroundFetch.registerHeadlessTask(backgroundFetch);
}
if (kDebugMode) { if (kDebugMode) {
final serviceProtocolInfo = await Service.getInfo(); final serviceProtocolInfo = await Service.getInfo();