From 641219155fd2963d4bf793267e7d35e4837ffd3a Mon Sep 17 00:00:00 2001 From: Fmar Date: Tue, 5 Sep 2023 22:30:05 +0200 Subject: [PATCH] try catch for web --- lib/main.dart | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 8213c2e0..e4646f59 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -290,8 +290,11 @@ Future main() async { } // FlutterNativeSplash.remove(); - if (PlatformUtil.isAndroid() || PlatformUtil.isIOS()) { - initBackgroundService(); + try{ + if (PlatformUtil.isAndroid() || PlatformUtil.isIOS()) { + initBackgroundService(); + } + } catch(e){ } runApp(MyApp()); }