Skip to content

Update Android User Feedback static API #14464

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 29, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions docs/platforms/android/user-feedback/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,24 @@ The User Feedback form allows users to submit feedback from anywhere inside your
For the configuration options, please refer to the <PlatformLink to="/user-feedback/configuration/">User Feedback Widget Configuration</PlatformLink>.

```java
import io.sentry.android.core.SentryUserFeedbackDialog;
import io.sentry.Sentry;

SentryId sentryId = Sentry.captureMessage("My message"); // You can optionally associate an event using its id
// Just instantiate the dialog and show it whenever you want
new SentryUserFeedbackDialog.Builder(context).create().show();
Sentry.showUserFeedbackDialog(sentryId, options -> {
// The options set here will be applied to the current form only
options.setFormTitle("We want to hear from you!");
});
```
```kotlin
import io.sentry.android.core.SentryUserFeedbackDialog
import io.sentry.Sentry

val sentryId = Sentry.captureMessage("My message") // You can optionally associate an event using its id
// Just instantiate the dialog and show it whenever you want
SentryUserFeedbackDialog.Builder(context).create().show()
Sentry.showUserFeedbackDialog(sentryId) { options ->
// The options set here will be applied to the current form only
options.formTitle = "We want to hear from you!"
}
```

### Session Replay
Expand Down