Mobile SDKs now support a shake gesture to open the User Feedback form. When enabled, shaking the device triggers the feedback form using the platform's built-in accelerometer without additional permissions being required.
Users often encounter bugs in the moment but have no easy way to report them. Shake-to-report gives them an always-available gesture to submit feedback without needing a visible UI element.
You can enable shake-to-report at initialization. This uses the device's accelerometer and does not require any additional permissions.
SentryAndroid.init(context, options -> {
options.getFeedbackOptions().setUseShakeGesture(true);
});
Available in Android SDK 8.36.0 (documentation)
The feature is only supported on iOS and can be enabled like below:
SentrySDK.start { options in
options.configureUserFeedback { config in
config.useShakeGesture = true
}
}
Available in iOS SDK 9.7.0 (documentation)
You can enable shake-to-report declaratively via the feedbackIntegration option:
Sentry.feedbackIntegration({
enableShakeToReport: true,
});
Or control it programmatically:
Sentry.enableFeedbackOnShake();
Sentry.disableFeedbackOnShake();
Available in React Native SDK 8.5.0 (documentation)
The feature is soon coming to Flutter too.