Skip to content

feat(feedback): Add per-form shake detection and sample app showcases#5353

Merged
romtsn merged 6 commits intomainfrom
rz/chore/feedback-samples-update
May 4, 2026
Merged

feat(feedback): Add per-form shake detection and sample app showcases#5353
romtsn merged 6 commits intomainfrom
rz/chore/feedback-samples-update

Conversation

@romtsn
Copy link
Copy Markdown
Member

@romtsn romtsn commented Apr 30, 2026

Add per-instance shake-to-show support on SentryUserFeedbackForm and update the sample app with examples covering the new feedback API surface.

Per-form shake detection

SentryUserFeedbackForm now supports per-instance shake-to-show via the options configurator (isUseShakeGesture = true). When the global FeedbackShakeIntegration is already active, per-form shake is skipped to avoid conflicts. Feedback options are resolved once in the constructor and reused in onCreate.

Sample app showcases

Updated UserFeedbackScreen with examples for: custom form via Builder with many options, auto-dismiss form, programmatic Feedback capture without a form, and shake-to-show toggle.

Closes #5305

Resolve feedback options once in the constructor and reuse them in
onCreate, avoiding duplicate resolution. Add per-form shake-to-show
support via SentryShakeDetector that skips activation when the global
FeedbackShakeIntegration is already enabled. Update sample app with
custom form builder, auto-dismiss, programmatic capture, and
shake-to-show examples.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@romtsn romtsn force-pushed the rz/chore/feedback-samples-update branch from 6f64a4e to f6f626b Compare April 30, 2026 18:49
@romtsn romtsn changed the title ref(feedback): Rename Dialog to Form, add Sentry.feedback() API, and deprecate legacy classes feat(feedback): Add per-form shake detection and sample app showcases Apr 30, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 30, 2026

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 35ee7a5

@sentry
Copy link
Copy Markdown

sentry Bot commented Apr 30, 2026

📲 Install Builds

Android

🔗 App Name App ID Version Configuration
SDK Size io.sentry.tests.size 8.40.0 (1) release

⚙️ sentry-android Build Distribution Settings

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 30, 2026

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 390.98 ms 509.88 ms 118.90 ms
Size 0 B 0 B 0 B

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
8687935 294.00 ms 304.02 ms 10.02 ms
6edfca2 305.52 ms 432.78 ms 127.26 ms
b6702b0 395.86 ms 409.98 ms 14.12 ms
a1eadfa 345.67 ms 411.26 ms 65.59 ms
889ecea 367.58 ms 437.52 ms 69.94 ms
e2dce0b 315.85 ms 369.20 ms 53.35 ms
d15471f 322.58 ms 396.08 ms 73.50 ms
62b579c 349.26 ms 426.26 ms 77.00 ms
cf708bd 434.73 ms 502.96 ms 68.22 ms
6edfca2 316.43 ms 398.90 ms 82.46 ms

App size

Revision Plain With Sentry Diff
8687935 1.58 MiB 2.19 MiB 619.17 KiB
6edfca2 1.58 MiB 2.13 MiB 559.07 KiB
b6702b0 1.58 MiB 2.12 MiB 551.79 KiB
a1eadfa 0 B 0 B 0 B
889ecea 1.58 MiB 2.11 MiB 539.75 KiB
e2dce0b 0 B 0 B 0 B
d15471f 1.58 MiB 2.13 MiB 559.54 KiB
62b579c 0 B 0 B 0 B
cf708bd 1.58 MiB 2.11 MiB 539.71 KiB
6edfca2 1.58 MiB 2.13 MiB 559.07 KiB

Previous results on branch: rz/chore/feedback-samples-update

Startup times

Revision Plain With Sentry Diff
a372595 309.31 ms 362.00 ms 52.69 ms
d1e979c 323.85 ms 375.76 ms 51.91 ms

App size

Revision Plain With Sentry Diff
a372595 0 B 0 B 0 B
d1e979c 0 B 0 B 0 B

@romtsn romtsn marked this pull request as ready for review May 4, 2026 07:35
@romtsn romtsn requested review from adinauer and markushi as code owners May 4, 2026 07:35
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 929b476. Configure here.

Copy link
Copy Markdown
Contributor

@antonis antonis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
Also tested on a Pixel 8 Pro with Android 16 and the shake detection worked as expected 🚀

@romtsn romtsn merged commit 8558cac into main May 4, 2026
64 of 66 checks passed
@romtsn romtsn deleted the rz/chore/feedback-samples-update branch May 4, 2026 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feedback: Update sample apps and document

3 participants