mirror of
https://github.com/status-im/instabug-reactnative.git
synced 2025-03-03 06:30:41 +00:00
Enable identifyUser
APIs in android
This commit is contained in:
parent
1814b37b85
commit
712016c164
@ -320,6 +320,22 @@ public class RNInstabugReactnativeModule extends ReactContextBaseJavaModule {
|
||||
return tags;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the user identity.
|
||||
* Instabug will pre-fill the user email in reports.
|
||||
*
|
||||
* @param username Username.
|
||||
* @param email User's default email
|
||||
*/
|
||||
@ReactMethod
|
||||
public void identifyUser(String userName, String userEmail) {
|
||||
try {
|
||||
mInstabug.identifyUser(userName, userEmail);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Reset ALL tags added using {@link #addTags(String...)}
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user