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,