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;