Skip to content

Commit 2f9858f

Browse files
authored
Merge pull request #910 from MaximBelov/ios-debug-view
feat(ios): Turn on debug view for debug builds
2 parents 33b37f8 + f9c6c9d commit 2f9858f

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)