From 88b6da5e0a5cfd96954d6534787cecdad92a08fe Mon Sep 17 00:00:00 2001 From: mertalev <101130780+mertalev@users.noreply.github.com> Date: Tue, 2 Sep 2025 12:29:31 -0400 Subject: [PATCH] init before app launch --- mobile/lib/main.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mobile/lib/main.dart b/mobile/lib/main.dart index cc6de34176..1a19256aeb 100644 --- a/mobile/lib/main.dart +++ b/mobile/lib/main.dart @@ -114,6 +114,8 @@ Future initApp() async { yield LicenseEntryWithLineBreaks([license.key], license.value); } }); + + await NetworkRepository.init(); } class ImmichApp extends ConsumerStatefulWidget { @@ -167,7 +169,6 @@ class ImmichAppState extends ConsumerState with WidgetsBindingObserve } SystemChrome.setSystemUIOverlayStyle(overlayStyle); await ref.read(localNotificationService).setup(); - await NetworkRepository.init(); } Future _deepLinkBuilder(PlatformDeepLink deepLink) async {