2/15/2
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user