From f9c6c9d57a7d278ee8a9fedb86e02c46185ba11f Mon Sep 17 00:00:00 2001 From: Maxim Belov Date: Tue, 19 Nov 2024 13:45:02 +0200 Subject: [PATCH] feat(ios): Turn on debug by default --- src/ios/AppDelegate+FirebasePlugin.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ios/AppDelegate+FirebasePlugin.m b/src/ios/AppDelegate+FirebasePlugin.m index 58dd642db..924fc3efa 100644 --- a/src/ios/AppDelegate+FirebasePlugin.m +++ b/src/ios/AppDelegate+FirebasePlugin.m @@ -49,6 +49,11 @@ - (NSNumber *)applicationInBackground { - (BOOL)application:(UIApplication *)application swizzledDidFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [self application:application swizzledDidFinishLaunchingWithOptions:launchOptions]; + #if DEBUG + [[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"/google/firebase/debug_mode"]; + [[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"/google/measurement/debug_mode"]; + #endif + @try{ instance = self;