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();
|
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();
|
||||||
|
|||||||
Reference in New Issue
Block a user