From 9a769a10ff5f5f7e46b989492a5e708ac55b71ee Mon Sep 17 00:00:00 2001 From: Antonis Lilis Date: Thu, 5 Mar 2026 11:33:54 +0100 Subject: [PATCH 1/2] docs(apple): Add shake-to-report section and note iOS-only support Add a "Shake to Report" section to the user feedback setup page and update the `useShakeGesture` config description to note it's iOS-only. Ref: https://github.com/getsentry/sentry-cocoa/pull/7579 Co-Authored-By: Claude --- .../common/user-feedback/configuration/index.mdx | 2 +- docs/platforms/apple/common/user-feedback/index.mdx | 12 ++++++++++++ 2 files changed, 13 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 74288df193892..14f4de48dbce6 100644 --- a/docs/platforms/apple/common/user-feedback/configuration/index.mdx +++ b/docs/platforms/apple/common/user-feedback/configuration/index.mdx @@ -18,7 +18,7 @@ The following options can be configured for the integration in `SentryUserFeedba | Option | Type | Default | Description | | ------------------------ | --------------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | | `animations` | `Bool` | `true` | Whether or not to show animations, like for presenting and dismissing the form. | -| `useShakeGesture` | `Bool` | `false` | Use a shake gesture to display the form. | +| `useShakeGesture` | `Bool` | `false` | Use a shake gesture to display the form. Only supported on iOS; this is a no-op on macOS, tvOS, watchOS, and visionOS. | | `showFormForScreenshots` | `Bool` | `false` | Any time a user takes a screenshot, bring up the form with the screenshot attached. | | `tags` | `[String: Any]` | `nil` | Tags to set on the feedback event. This is a dictionary where keys are strings and values can be different data types such as `NSNumber`, `NSString`, etc. | diff --git a/docs/platforms/apple/common/user-feedback/index.mdx b/docs/platforms/apple/common/user-feedback/index.mdx index a7f35fdff1f05..447f8125f9609 100644 --- a/docs/platforms/apple/common/user-feedback/index.mdx +++ b/docs/platforms/apple/common/user-feedback/index.mdx @@ -161,6 +161,18 @@ struct SwiftUIApp: App { } ``` +### Shake to Report + +You can enable shake-to-report so that shaking the device opens the User Feedback form. This is only supported on iOS. + +```swift +SentrySDK.start { options in + options.configureUserFeedback { config in + config.useShakeGesture = true + } +} +``` + ### Session Replay The User Feedback widget integrates seamlessly with Session Replay. When the widget is opened, the Replay SDK buffers up to 30 seconds of the user's session. If feedback is submitted, this replay is sent along with the feedback, allowing you to view both the feedback and the user's actions leading up to the feedback submission. From db3a8a3b8cf742f9285891006f3e9017ccccdbee Mon Sep 17 00:00:00 2001 From: Antonis Lilis Date: Tue, 10 Mar 2026 08:09:54 +0100 Subject: [PATCH 2/2] Add iPadOS --- .../apple/common/user-feedback/configuration/index.mdx | 2 +- 1 file changed, 1 insertion(+), 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 14f4de48dbce6..6fcbe94c6882e 100644 --- a/docs/platforms/apple/common/user-feedback/configuration/index.mdx +++ b/docs/platforms/apple/common/user-feedback/configuration/index.mdx @@ -18,7 +18,7 @@ The following options can be configured for the integration in `SentryUserFeedba | Option | Type | Default | Description | | ------------------------ | --------------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | | `animations` | `Bool` | `true` | Whether or not to show animations, like for presenting and dismissing the form. | -| `useShakeGesture` | `Bool` | `false` | Use a shake gesture to display the form. Only supported on iOS; this is a no-op on macOS, tvOS, watchOS, and visionOS. | +| `useShakeGesture` | `Bool` | `false` | Use a shake gesture to display the form. Only supported on iOS and iPadOS; this is a no-op on macOS, tvOS, watchOS, and visionOS. | | `showFormForScreenshots` | `Bool` | `false` | Any time a user takes a screenshot, bring up the form with the screenshot attached. | | `tags` | `[String: Any]` | `nil` | Tags to set on the feedback event. This is a dictionary where keys are strings and values can be different data types such as `NSNumber`, `NSString`, etc. |