Skip to main content

Feedback type

By default, your users have to categorize their feedback so you can filter and browse it more easily later on.

User feedback type

Introduction

Your users categorize every feedback as either a bug report, an improvement suggestion, or a question. Depending on what they choose, their feedback arrives with the bug, suggestion or question tag to your Shake dashboard.

Custom feedback types

You can configure Shake to display any number of custom feedback types related to your app. Shake exposes an internal FeedbackType type which is used to encapsulate the properties of your custom category. Here's an example:

App.kt
val feedbackTypes = ArrayList<FeedbackType>()
feedbackTypes.add(FeedbackType(R.drawable.ic_hardware, "Hardware issue", "hardware")) // Icon is optional
feedbackTypes.add(FeedbackType(R.drawable.ic_audio, "Call audio problem", "call_audio"))
feedbackTypes.add(FeedbackType(R.drawable.ic_files, "File sync issue", "file_sync"))
Shake.getReportConfiguration().feedbackTypes = feedbackTypes

There is no limit to the number of categories you can enter.

Along with the setFeedbackTypes method, Shake also exposes the getFeedbackTypes method which allows you to grab the current set of FeedbackType and use them however you like.

As an example, certain parts of your app can have specific features, so you can have different feedback types for different parts of your app:

App.kt
fun enableVideoCallFeature(contactID:String) {
val videoCallCategory = FeedbackType(R.drawable.ic_hardware, "Hardware issue", "hardware")
val existing = Shake.getReportConfiguration().feedbackTypes
existing.add(videoCallCategory)
Shake.getReportConfiguration().feedbackTypes = existing
}

Disable

If you don't want to force your users to categorize their feedback, simply hide this element:

App.kt
Shake.getReportConfiguration().isFeedbackTypeEnabled = false