Skip to main content

Silent user feedback

Send yourself feedback from the app background, without showing Shake UI.

Overview

You can send silent user feedback to yourself by calling the Shake.silentReport method anywhere after Shake.start. Feel free to add your own description to it as well.

ShakeReportConfiguration determines which data is attached to the silent user feedback:

App.js
import Shake, {ShakeFile, ShakeReportConfiguration} from '@shakebugs/react-native-shake';
const sendSilentReport = () => {
const configuration = new ShakeReportConfiguration();
configuration.blackBoxData = true;
configuration.activityHistoryData = true;
configuration.screenshot = true;
configuration.video = false;
Shake.silentReport(
'Description #tag1 #tag2',
[ShakeFile.create(path)],
configuration);
}

Show the Ticket submitted message

To optionally notify your user that a silent user feedback has just been submitted, change the ShakeReportConfiguration and use that configuration object when sending the silent user feedback with the Shake.silentReport method:

App.js
const configuration = new ShakeReportConfiguration();
configuration.showReportSentMessage = true;