Instabug helps you better identify the bug reports or feedback you get by associating a user's identity to them.
If you already have a user's name and email, you can pre-fill the email field in the bug, feedback, and question reporting flow. The user will then be identified in all reports (bugs, improvements, questions), crashes, surveys, and feature requests.
Ideally, this API should be called as soon as a user logs into your app.
You can also add additional data about your users. This API is best used for dumping large amounts of data. Each call to this method overrides the user data to be attached. The maximum length of the string is 1,000 characters.
let profileDetails = user.allProfileDetails() let profileDetailsString = "\(profileDetails)" Instabug.userData = profileDetailsString
NSDictionary *profileDetails = [user allProfileDetails]; NSString *profileDetailsString = [NSString stringWithFormat:@"%@", profileDetails]; Instabug.userData = profileDetailsString;
When a user logs out, the following API should be called. Calling
logOut will reset the value of the email and name previously set. It will also remove any currently set user attributes, user events, user chats, and user data.
Updated 2 years ago