From 6c57b0edaff051f22f8b7c3d9a683a1657f875b9 Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Thu, 15 Feb 2024 19:07:45 +0300 Subject: [PATCH] 2/15/2 --- lib/main.dart | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index e58bfd9..781f103 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -33,14 +33,17 @@ Future backgroundMessageHandler(RemoteMessage message) async { void main() async { WidgetsFlutterBinding.ensureInitialized(); - await NotificationController().initNotifications(); + if (Platform.isAndroid) { + await NotificationController().initNotifications(); + } + await GetStorage.init(); await AC().gAK(); print( 'local is t ${WidgetsBinding.instance.platformDispatcher.locale.countryCode}'); print(Get.deviceLocale!.countryCode); Stripe.publishableKey = AK.publishableKey; - final navigatorKey = GlobalKey(); + // final navigatorKey = GlobalKey(); /// 2/5: set navigator key to ZegoUIKitPrebuiltCallInvitationService // ZegoUIKitPrebuiltCallInvitationService().setNavigatorKey(navigatorKey); @@ -52,7 +55,7 @@ void main() async { // runApp(MyApp(navigatorKey: navigatorKey)); // }); - //StripeKey.publishableKey; + // StripeKey.publishableKey; if (Platform.isAndroid || Platform.isIOS) { await Firebase.initializeApp( options: DefaultFirebaseOptions.currentPlatform,