You can assign custom attributes to your users and they will show up on your Instabug dashboard with each report. These attributes can later be used to filter reports in your dashboard.
This is where additional user attributes appear in your bug reports.
To add a new user attribute, use the following method.
Instabug.setUserAttribute("True", withKey: "Logged in") Instabug.setUserAttribute("False", withKey: "Completed IAP")
[Instabug setUserAttribute:@"True" withKey:@"Logged in"]; [Instabug setUserAttribute:@"18" withKey:@"Age"];
You can also retrieve or remove the current value of a certain user attribute.
let loggedIn = Instabug.userAttribute(forKey: "Logged in") Instabug.removeUserAttribute(forKey: "Logged in")
NSString *loggedIn = [Instabug userAttributeForKey:@"Logged in"]; [Instabug removeUserAttributeForKey:@"Logged in"];
Or retrieve all user attributes.
let allUserAttributes = Instabug.userAttributes()
NSDictionary *allUserAttributes = [Instabug userAttributes];
You can log custom user events throughout your application. Custom events are automatically included with each report.
Instabug.logUserEvent(withName: "Skipped Walkthrough")
[Instabug logUserEventWithName:@"Skipped Walkthrough"];
You can add custom tags to your bug and crash reports. These tags can later be used to filter reports or set custom rules from your dashboard.
This is where tags appear in your bug reports.
The example below demonstrates how to add tags to a report.
[Instabug appendTags:@[@"Design", @"Flow"]];
You can also get all the currently set tags as follows.
Last, you can reset all the tags.