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.
To add a new user attribute use the following method.
Instabug.setUserAttributeWithKey(String value, String key) //Examples Instabug.setUserAttributeWithKey("18", "Age"); Instabug.setUserAttributeWithKey("True", "Logged In");
You can also retrieve the current value of a certain user attribute, or retrieve all user attributes.
// Getting attribute Instabug.getUserAttributeForKey("Logged in"); // Loading all attributes Instabug.getUserAttributes();
Or remove the current value of a certain user attribute
You can log custom user events throughout your application. Custom events are automatically included with each report.
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.
The example below demonstrates how to add tags to a report.
Instabug.appendTags(["Tag 1", "Tag 2"]);
Adding tags before sending reports
Sometimes it's useful to be able to add a tag to a bug report before it's been sent. In these cases, the perfect solution would be use the event handlers of the bug reporting class. You can find more details here.
You can also get all the currently set tags as follows.
Last, you can reset all the tags.
If you'd like to remove a particular tag from your dashboard to prevent it from appearing again when entering a new tag manually, you can do so by navigating to the tags page under the settings options and remove the tag. You can also edit and rename the tag.
Updated 16 days ago