Skip to content

Commit

Permalink
show events in Firebase Debug View for debug build
Browse files Browse the repository at this point in the history
  • Loading branch information
AGulev committed Mar 27, 2024
1 parent dfe847a commit ad44dde
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions firebase/src/firebase_ios.mm
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,13 @@ bool SetOption(const char* key, const char* value) {
}

void Initialize() {
#if defined(DM_DEBUG)
// add this values provide opportunity to see events in Firebase Debug View
NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
[defaults setBool:YES forKey:@"/google/firebase/debug_mode"];
[defaults setBool:YES forKey:@"/google/measurement/debug_mode"];
[defaults synchronize];
#endif
@try {
if(![FIRApp defaultApp]) {
if (!firOptions) {
Expand Down

0 comments on commit ad44dde

Please sign in to comment.