Skip to content

Commit

Permalink
feat(ios): Turn on debug by default
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximBelov committed Nov 19, 2024
1 parent 4e7ad7c commit f9c6c9d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ios/AppDelegate+FirebasePlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit f9c6c9d

Please sign in to comment.