Skip to content

Commit f9c6c9d

Browse files
committed
feat(ios): Turn on debug by default
1 parent 4e7ad7c commit f9c6c9d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/ios/AppDelegate+FirebasePlugin.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ - (NSNumber *)applicationInBackground {
4949
- (BOOL)application:(UIApplication *)application swizzledDidFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
5050
[self application:application swizzledDidFinishLaunchingWithOptions:launchOptions];
5151

52+
#if DEBUG
53+
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"/google/firebase/debug_mode"];
54+
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"/google/measurement/debug_mode"];
55+
#endif
56+
5257
@try{
5358
instance = self;
5459

0 commit comments

Comments
 (0)