From dd8cc373cce346141e1f4fbf1cd00cc39d2d5c30 Mon Sep 17 00:00:00 2001 From: Antonis Lilis Date: Thu, 30 Jul 2026 09:39:58 +0200 Subject: [PATCH 1/4] feat(apple): Document runtime shake-to-report toggle --- .../user-feedback/configuration/index.mdx | 2 +- .../apple/common/user-feedback/index.mdx | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/docs/platforms/apple/common/user-feedback/configuration/index.mdx b/docs/platforms/apple/common/user-feedback/configuration/index.mdx index 29a903eb333bdc..25fb7be7e3c7fc 100644 --- a/docs/platforms/apple/common/user-feedback/configuration/index.mdx +++ b/docs/platforms/apple/common/user-feedback/configuration/index.mdx @@ -48,7 +48,7 @@ The following options can be configured in `SentryUserFeedbackConfiguration`: | Option | Type | Default | Description | | ------------------------ | --------------- | ------- | ----------------------------------------------------------------------------------------------- | | `animations` | `Bool` | `true` | Shows animations when presenting and dismissing the form. | -| `useShakeGesture` | `Bool` | `false` | Opens the form when the user shakes the device. | +| `useShakeGesture` | `Bool` | `false` | Opens the form when the user shakes the device. Toggle it at runtime with `SentrySDK.feedback.enableFeedbackOnShake()` / `disableFeedbackOnShake()`. | | `showFormForScreenshots` | `Bool` | `false` | Opens the form when the user takes a screenshot and attaches that screenshot. | | `configureForm` | Callback | `nil` | Configures the managed form fields and labels. | | `configureTheme` | Callback | `nil` | Configures colors, fonts, and form element outlines. | diff --git a/docs/platforms/apple/common/user-feedback/index.mdx b/docs/platforms/apple/common/user-feedback/index.mdx index e5a2db64ab65e4..dbd0baad381d4c 100644 --- a/docs/platforms/apple/common/user-feedback/index.mdx +++ b/docs/platforms/apple/common/user-feedback/index.mdx @@ -225,6 +225,24 @@ SentrySDK.start { options in }]; ``` +You can also enable or disable the shake gesture at runtime, for example once an asynchronously resolved feature flag or user role decides whether to offer feedback. This requires the User Feedback integration to be configured via `configureUserFeedback`; otherwise the calls are a no-op. Call these methods from the main thread. + +```swift {tabTitle:Swift} {mdExpandTabs} +// Start detecting shake gestures to open the feedback form +SentrySDK.feedback.enableFeedbackOnShake() + +// Stop detecting shake gestures +SentrySDK.feedback.disableFeedbackOnShake() +``` + +```objc {tabTitle:Objective-C} +// Start detecting shake gestures to open the feedback form +[[SentryObjCSDK feedback] enableFeedbackOnShake]; + +// Stop detecting shake gestures +[[SentryObjCSDK feedback] disableFeedbackOnShake]; +``` + ### Session Replay The managed feedback form works with Session Replay. When the form opens, the Replay SDK buffers up to 30 seconds of the user's session. If the user submits feedback, the replay is sent with the feedback so you can see what led up to it. From 9e63684b65a706985615a3e22a2cba5c77022659 Mon Sep 17 00:00:00 2001 From: Antonis Lilis Date: Fri, 31 Jul 2026 15:24:59 +0200 Subject: [PATCH 2/4] Rename to methods to enableOnShake() and disableOnShake() --- .../apple/common/user-feedback/configuration/index.mdx | 2 +- docs/platforms/apple/common/user-feedback/index.mdx | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/platforms/apple/common/user-feedback/configuration/index.mdx b/docs/platforms/apple/common/user-feedback/configuration/index.mdx index 25fb7be7e3c7fc..9f1ace79998a25 100644 --- a/docs/platforms/apple/common/user-feedback/configuration/index.mdx +++ b/docs/platforms/apple/common/user-feedback/configuration/index.mdx @@ -48,7 +48,7 @@ The following options can be configured in `SentryUserFeedbackConfiguration`: | Option | Type | Default | Description | | ------------------------ | --------------- | ------- | ----------------------------------------------------------------------------------------------- | | `animations` | `Bool` | `true` | Shows animations when presenting and dismissing the form. | -| `useShakeGesture` | `Bool` | `false` | Opens the form when the user shakes the device. Toggle it at runtime with `SentrySDK.feedback.enableFeedbackOnShake()` / `disableFeedbackOnShake()`. | +| `useShakeGesture` | `Bool` | `false` | Opens the form when the user shakes the device. Toggle it at runtime with `SentrySDK.feedback.enableOnShake()` / `disableOnShake()`. | | `showFormForScreenshots` | `Bool` | `false` | Opens the form when the user takes a screenshot and attaches that screenshot. | | `configureForm` | Callback | `nil` | Configures the managed form fields and labels. | | `configureTheme` | Callback | `nil` | Configures colors, fonts, and form element outlines. | diff --git a/docs/platforms/apple/common/user-feedback/index.mdx b/docs/platforms/apple/common/user-feedback/index.mdx index dbd0baad381d4c..bc2ac18b48025c 100644 --- a/docs/platforms/apple/common/user-feedback/index.mdx +++ b/docs/platforms/apple/common/user-feedback/index.mdx @@ -229,18 +229,18 @@ You can also enable or disable the shake gesture at runtime, for example once an ```swift {tabTitle:Swift} {mdExpandTabs} // Start detecting shake gestures to open the feedback form -SentrySDK.feedback.enableFeedbackOnShake() +SentrySDK.feedback.enableOnShake() // Stop detecting shake gestures -SentrySDK.feedback.disableFeedbackOnShake() +SentrySDK.feedback.disableOnShake() ``` ```objc {tabTitle:Objective-C} // Start detecting shake gestures to open the feedback form -[[SentryObjCSDK feedback] enableFeedbackOnShake]; +[[SentryObjCSDK feedback] enableOnShake]; // Stop detecting shake gestures -[[SentryObjCSDK feedback] disableFeedbackOnShake]; +[[SentryObjCSDK feedback] disableOnShake]; ``` ### Session Replay From b5f167fa529fec41b0353b7355426623bc95555c Mon Sep 17 00:00:00 2001 From: Philip Niedertscheider Date: Mon, 3 Aug 2026 11:46:45 +0200 Subject: [PATCH 3/4] chore: add minimum SDK version --- docs/platforms/apple/common/user-feedback/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/platforms/apple/common/user-feedback/index.mdx b/docs/platforms/apple/common/user-feedback/index.mdx index bc2ac18b48025c..33ed0234c38e24 100644 --- a/docs/platforms/apple/common/user-feedback/index.mdx +++ b/docs/platforms/apple/common/user-feedback/index.mdx @@ -225,7 +225,7 @@ SentrySDK.start { options in }]; ``` -You can also enable or disable the shake gesture at runtime, for example once an asynchronously resolved feature flag or user role decides whether to offer feedback. This requires the User Feedback integration to be configured via `configureUserFeedback`; otherwise the calls are a no-op. Call these methods from the main thread. +In version [9.25.0](https://github.com/getsentry/sentry-cocoa/releases/9.25.0) or later, you can also enable or disable the shake gesture at runtime, for example once an asynchronously resolved feature flag or user role decides whether to offer feedback. This requires the User Feedback integration to be configured via `configureUserFeedback`; otherwise the calls are a no-op. Call these methods from the main thread. ```swift {tabTitle:Swift} {mdExpandTabs} // Start detecting shake gestures to open the feedback form From 95c3b939784aa63797ff39d00191d856180022f4 Mon Sep 17 00:00:00 2001 From: Philip Niedertscheider Date: Mon, 3 Aug 2026 11:50:18 +0200 Subject: [PATCH 4/4] Apply suggestion from @philprime --- docs/platforms/apple/common/user-feedback/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/platforms/apple/common/user-feedback/index.mdx b/docs/platforms/apple/common/user-feedback/index.mdx index 33ed0234c38e24..32715327c07ca0 100644 --- a/docs/platforms/apple/common/user-feedback/index.mdx +++ b/docs/platforms/apple/common/user-feedback/index.mdx @@ -225,7 +225,7 @@ SentrySDK.start { options in }]; ``` -In version [9.25.0](https://github.com/getsentry/sentry-cocoa/releases/9.25.0) or later, you can also enable or disable the shake gesture at runtime, for example once an asynchronously resolved feature flag or user role decides whether to offer feedback. This requires the User Feedback integration to be configured via `configureUserFeedback`; otherwise the calls are a no-op. Call these methods from the main thread. +In version [9.25.0](https://github.com/getsentry/sentry-cocoa/releases/tag/9.25.0) or later, you can also enable or disable the shake gesture at runtime, for example once an asynchronously resolved feature flag or user role decides whether to offer feedback. This requires the User Feedback integration to be configured via `configureUserFeedback`; otherwise the calls are a no-op. Call these methods from the main thread. ```swift {tabTitle:Swift} {mdExpandTabs} // Start detecting shake gestures to open the feedback form