This commit is contained in:
Hamza-Ayed
2024-02-15 19:07:45 +03:00
parent d74646a511
commit 6c57b0edaf

View File

@@ -33,14 +33,17 @@ Future<void> 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<NavigatorState>();
// final navigatorKey = GlobalKey<NavigatorState>();
/// 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,