Skip to content

Commit 600efc5

Browse files
committed
🐛 Fix identifyUserWithEmail not mapped for iOS
1 parent 67b2471 commit 600efc5

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/ios/IBGPlugin.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,6 @@
2424

2525
- (void) setLocale:(CDVInvokedUrlCommand*)command;
2626

27-
@end
27+
- (void) identifyUserWithEmail:(CDVInvokedUrlCommand*)command;
28+
29+
@end

src/ios/IBGPlugin.m

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,13 @@ - (void) startWithToken:(CDVInvokedUrlCommand*)command
114114
[self.commandDelegate sendPluginResult:result callbackId:[command callbackId]];
115115
}
116116

117+
- (void) identifyUserWithEmail:(CDVInvokedUrlCommand*)command {
118+
NSString *email = [command argumentAtIndex:0];
119+
NSString *name = [command argumentAtIndex:1];
120+
[Instabug identifyUserWithEmail:email name:name];
121+
[self sendSuccessResult:command];
122+
}
123+
117124
/**
118125
* Shows the Instabug dialog so user can choose to report a bug, or
119126
* submit feedback. A specific mode of the SDK can be shown if specified.

0 commit comments

Comments
 (0)