Skip to content

Commit

Permalink
[iOS] Fix logEvent so it doesn't generated warning message in console.
Browse files Browse the repository at this point in the history
…Fixes #154
  • Loading branch information
Dave Alden committed Oct 22, 2019
1 parent f7a8847 commit 0ddf201
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/ios/FirebasePlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -421,14 +421,7 @@ - (void)logEvent:(CDVInvokedUrlCommand *)command {
[self.commandDelegate runInBackground:^{
@try {
NSString* name = [command.arguments objectAtIndex:0];
NSDictionary *parameters;
@try {
NSString *description = NSLocalizedString([command argumentAtIndex:1 withDefault:@"No Message Provided"], nil);
parameters = @{ NSLocalizedDescriptionKey: description };
}
@catch (NSException *execption) {
parameters = [command argumentAtIndex:1];
}
NSDictionary *parameters = [command argumentAtIndex:1];

[FIRAnalytics logEventWithName:name parameters:parameters];

Expand Down

0 comments on commit 0ddf201

Please sign in to comment.