From c7714101089dc279ec2d45b856a878a76d3692c5 Mon Sep 17 00:00:00 2001 From: Raviramnani1 Date: Fri, 5 Jul 2024 13:24:56 +0530 Subject: [PATCH] updated main_prod.dart to show debug token to run in ios simulator --- wallet/lib/main_prod.dart | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/wallet/lib/main_prod.dart b/wallet/lib/main_prod.dart index 73b46aab92..b81c7517fe 100644 --- a/wallet/lib/main_prod.dart +++ b/wallet/lib/main_prod.dart @@ -32,6 +32,8 @@ Future main() async { await FlutterDownloader.initialize(ignoreSsl: true); await EasyLocalization.ensureInitialized(); await Firebase.initializeApp(); + await FirebaseAppCheck.instance.activate( + appleProvider: AppleProvider.debug,); await FirebaseCrashlytics.instance .setCrashlyticsCollectionEnabled(!kDebugMode); @@ -96,15 +98,7 @@ Future initializeAppCheck() async { // This kDebugMode check gets a android debug token from FirebaseAppCheck which can then be added on the Firebase console // iOS debug token from FirebaseAppCheck automatically get without method channel when run on debug mode which can then be added on the Firebase console // So that the application can be allowed to access to Firebase AppCheck token in debug mode. - if (kDebugMode && Platform.isAndroid) { - try { - const MethodChannel methodChannel = - MethodChannel(kGetFirebaseAppCheckTokenMethodChannelKey); - await methodChannel.invokeMethod(kGetFirebaseAppCheckDebugTokenKey); - } catch (e) { - e.toString().show(); - } - } + } class MyHttpOverrides extends HttpOverrides {