Silent user feedback
Send yourself feedback from the app background, without showing Shake UI.
You're viewing the React Native docs. Other platforms →
iOS
Android
Flutter
Web
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:
- Auto attached files
- Auto screen recording if the feature is turned on
- Etc.
- Javascript
- Typescript
index.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);}
index.ts
import Shake, {ShakeFile, ShakeReportConfiguration} from '@shakebugs/react-native-shake';const sendSilentReport = () => {const configuration: ShakeReportConfiguration = 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:
- Javascript
- Typescript
index.js
const configuration = new ShakeReportConfiguration();configuration.showReportSentMessage = true;
index.ts
const configuration: ShakeReportConfiguration = new ShakeReportConfiguration();configuration.showReportSentMessage = true;