Skip to content

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

Draft
romtsn wants to merge 5 commits intomainfrom
rz/chore/feedback-samples-update
Draft

feat(feedback): Add per-form shake detection and sample app showcases#5353
romtsn wants to merge 5 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 #5304

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 <noreply@anthropic.com>
@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 929b476

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@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 309.31 ms 362.00 ms 52.69 ms
Size 0 B 0 B 0 B

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
5865051 324.24 ms 356.02 ms 31.78 ms
b750b96 421.25 ms 444.09 ms 22.84 ms
9139b91 351.35 ms 355.63 ms 4.28 ms
3d205d0 352.15 ms 432.53 ms 80.38 ms
c8125f3 397.65 ms 485.14 ms 87.49 ms
f064536 329.00 ms 395.62 ms 66.62 ms
b750b96 408.98 ms 480.32 ms 71.34 ms
f064536 349.86 ms 417.66 ms 67.80 ms
d15471f 310.26 ms 377.04 ms 66.78 ms
d15471f 294.13 ms 399.49 ms 105.36 ms

App size

Revision Plain With Sentry Diff
5865051 0 B 0 B 0 B
b750b96 1.58 MiB 2.10 MiB 533.20 KiB
9139b91 1.58 MiB 2.13 MiB 559.52 KiB
3d205d0 1.58 MiB 2.10 MiB 532.97 KiB
c8125f3 1.58 MiB 2.10 MiB 532.32 KiB
f064536 1.58 MiB 2.20 MiB 633.90 KiB
b750b96 1.58 MiB 2.10 MiB 533.19 KiB
f064536 1.58 MiB 2.20 MiB 633.90 KiB
d15471f 1.58 MiB 2.13 MiB 559.54 KiB
d15471f 1.58 MiB 2.13 MiB 559.54 KiB

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

Startup times

Revision Plain With Sentry Diff
d1e979c 323.85 ms 375.76 ms 51.91 ms

App size

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

romtsn and others added 2 commits April 30, 2026 21:16
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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: Rename FeedbackWidget to FeedbackForm

2 participants