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:
- Auto attached files
- Auto screen recording if the feature is turned on
- Etc.
- Java
- Kotlin
App.java
private void sendSilentReport() {ShakeReportConfiguration configuration = new ShakeReportConfiguration();configuration.screenshot = true;configuration.video = false;configuration.blackBoxData = true;configuration.activityHistoryData = true;Shake.silentReport("Description #tag1 #tag2", createShakeReportData(), configuration);}private ShakeReportData createShakeReportData() {return new ShakeReportData() {@Overridepublic List<ShakeFile> attachedFiles() {List<ShakeFile> shakeFiles = new ArrayList<>();shakeFiles.add(new ShakeFile(filePath));return shakeFiles;}};}
App.kt
private fun sendSilentReport() {val configuration = ShakeReportConfiguration()configuration.screenshot = trueconfiguration.video = falseconfiguration.blackBoxData = trueconfiguration.activityHistoryData = trueShake.silentReport("Description #tag1 #tag2", createShakeReportData(), configuration)}private fun createShakeReportData(): ShakeReportData {return ShakeReportData {val shakeFiles = ArrayList<ShakeFile>()shakeFiles.add(ShakeFile(filePath))shakeFiles}}
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:
- Java
- Kotlin
App.java
ShakeReportConfiguration configuration = new ShakeReportConfiguration();configuration.showReportSentMessage = true;
App.kt
val configuration = ShakeReportConfiguration()configuration.showReportSentMessage = true