From 65da9e2f547f00479a3162b3e01b111664fbe7e3 Mon Sep 17 00:00:00 2001 From: Antonis Lilis Date: Thu, 5 Mar 2026 11:34:02 +0100 Subject: [PATCH 1/4] docs(android): Add shake-to-report feedback documentation Document the new `useShakeGesture` option on `SentryFeedbackOptions` that opens the feedback form when the user shakes the device. Ref: https://github.com/getsentry/sentry-java/pull/5150 Co-Authored-By: Claude --- .../android/user-feedback/configuration/index.mdx | 1 + docs/platforms/android/user-feedback/index.mdx | 15 +++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/docs/platforms/android/user-feedback/configuration/index.mdx b/docs/platforms/android/user-feedback/configuration/index.mdx index 3702cc9474eb99..c8e99ac624172e 100644 --- a/docs/platforms/android/user-feedback/configuration/index.mdx +++ b/docs/platforms/android/user-feedback/configuration/index.mdx @@ -99,6 +99,7 @@ You can customize which form elements are shown, whether they are required, and | `showName` | `Bool` | `true` | Displays the name field on the feedback form. Ignored if `isNameRequired` is `true`. | | `isEmailRequired` | `Bool` | `false` | Requires the email field on the feedback form to be filled in. | | `showEmail` | `Bool` | `true` | Displays the email field on the feedback form. Ignored if `isEmailRequired` is `true`. | +| `useShakeGesture` | `Bool` | `false` | Opens the feedback form when the user shakes the device. Uses the accelerometer and requires no additional permissions. | | `useSentryUser` | `Bool` | `true` | Sets the `email` and `name` fields to the corresponding Sentry SDK user fields that were called with `SentrySDK.setUser`. | Example: diff --git a/docs/platforms/android/user-feedback/index.mdx b/docs/platforms/android/user-feedback/index.mdx index 90b4692e5fb990..85473a9ab7050a 100644 --- a/docs/platforms/android/user-feedback/index.mdx +++ b/docs/platforms/android/user-feedback/index.mdx @@ -44,6 +44,21 @@ val widget = SentryUserFeedbackButton(context) ``` +## Shake to Report + +You can enable shake-to-report so that shaking the device opens the User Feedback form. This uses the device's accelerometer and does not require any additional permissions. + +```java +SentryAndroid.init(context, options -> { + options.getFeedbackOptions().setUseShakeGesture(true); +}); +``` +```kotlin +SentryAndroid.init(this) { options -> + options.feedbackOptions.isUseShakeGesture = true +} +``` + ## User Feedback Form The User Feedback form allows users to submit feedback from anywhere inside your application. From 02d081af4252871c82ff33481ed915cd2163cb07 Mon Sep 17 00:00:00 2001 From: Antonis Lilis Date: Mon, 9 Mar 2026 16:14:02 +0100 Subject: [PATCH 2/4] docs(android): add manifest meta-data option for shake-to-report Add io.sentry.feedback.use-shake-gesture to manifest XML examples and configuration code snippets. Co-Authored-By: Claude Opus 4.6 --- .../android/user-feedback/configuration/index.mdx | 3 +++ docs/platforms/android/user-feedback/index.mdx | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/docs/platforms/android/user-feedback/configuration/index.mdx b/docs/platforms/android/user-feedback/configuration/index.mdx index c8e99ac624172e..d9302195e9b6e8 100644 --- a/docs/platforms/android/user-feedback/configuration/index.mdx +++ b/docs/platforms/android/user-feedback/configuration/index.mdx @@ -112,6 +112,7 @@ Example: + ``` ```java @@ -122,6 +123,7 @@ SentryAndroid.init(context, options -> { options.getFeedbackOptions().setShowEmail(false); options.getFeedbackOptions().setUseSentryUser(false); options.getFeedbackOptions().setShowBranding(false); + options.getFeedbackOptions().setUseShakeGesture(true); }); ``` ```kotlin @@ -132,6 +134,7 @@ SentryAndroid.init(this) { options -> options.feedbackOptions.isShowEmail = false options.feedbackOptions.isUseSentryUser = false options.feedbackOptions.isShowBranding = false + options.feedbackOptions.isUseShakeGesture = true } ``` diff --git a/docs/platforms/android/user-feedback/index.mdx b/docs/platforms/android/user-feedback/index.mdx index 85473a9ab7050a..c849c097ff5cba 100644 --- a/docs/platforms/android/user-feedback/index.mdx +++ b/docs/platforms/android/user-feedback/index.mdx @@ -59,6 +59,14 @@ SentryAndroid.init(this) { options -> } ``` +Alternatively, you can enable it via `AndroidManifest.xml`: + +```xml {filename:AndroidManifest.xml} + + + +``` + ## User Feedback Form The User Feedback form allows users to submit feedback from anywhere inside your application. From 2efe37a42571e1bcb8f87e91a65eef1c65ecf98a Mon Sep 17 00:00:00 2001 From: Antonis Lilis Date: Tue, 10 Mar 2026 08:12:20 +0100 Subject: [PATCH 3/4] Remove AndroidManifest note Co-authored-by: Roman Zavarnitsyn --- docs/platforms/android/user-feedback/index.mdx | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/platforms/android/user-feedback/index.mdx b/docs/platforms/android/user-feedback/index.mdx index c849c097ff5cba..a32d8d6391d831 100644 --- a/docs/platforms/android/user-feedback/index.mdx +++ b/docs/platforms/android/user-feedback/index.mdx @@ -59,8 +59,6 @@ SentryAndroid.init(this) { options -> } ``` -Alternatively, you can enable it via `AndroidManifest.xml`: - ```xml {filename:AndroidManifest.xml} From d8eb916c1e92d45de3246acaad5f6254c5df37a4 Mon Sep 17 00:00:00 2001 From: Antonis Lilis Date: Tue, 10 Mar 2026 08:15:29 +0100 Subject: [PATCH 4/4] Remove empty line --- docs/platforms/android/user-feedback/index.mdx | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/platforms/android/user-feedback/index.mdx b/docs/platforms/android/user-feedback/index.mdx index a32d8d6391d831..b3ecd26742a969 100644 --- a/docs/platforms/android/user-feedback/index.mdx +++ b/docs/platforms/android/user-feedback/index.mdx @@ -58,7 +58,6 @@ SentryAndroid.init(this) { options -> options.feedbackOptions.isUseShakeGesture = true } ``` - ```xml {filename:AndroidManifest.xml}