On iOS devices, the Applause SDK features two methods for reporting bugs. The first method opens the bug reporting screen when the user shakes the device (triggering the accelerometer). The second method allows the developer to report bugs programatically.
Your code may specify which method to use by modifying the Applause SDK’s settings prior to starting a Applause SDK session. Learn more about sessions by reading the iOS starting a session documentation.
IMPORTANT: In-App bug report works only for the QA Mode, if you set Market Mode (Production) shaking will have no effect. To learn how to switch modes see advanced configuration settings.
Shaking the device
By default, you may trigger a bug report by shaking the device and triggering the accelerometer. To specifically enable or disable this method, modify the following setting prior to initiating the Applause SDK session:
[[APLLogger settings] setReportOnShakeEnabled:YES];
APLLogger.settings().reportOnShakeEnabled = true
reportOnShakeEnabled – Specifies whether to report bugs by shaking the device. Default is
Triggering bug reports programmatically
You can also invoke the bug reporting screen from inside your own application code. This is useful if you want to add your own UI mechanism for launching a bug report.
Simply add the following line of code to your app to trigger the mechanism:
You can bind this call to any UI action such as tapping an on-screen button or choosing an option from a menu.