Search code examples
androidairbrake

Prompt user to send app crash info to Airbrake


I am using airbrake to catch crash reports

As soon as the app crashes I can see the report on the dashboard, but there is no alert in my app to ask the user to "Send Error Report". How can I enable airbrake alerts to ask the user to send the report for the crash. Could not find anything related to this on airbrake documentation. Thanks.


Solution

  • Reading the AirbrakeNotifier code you linked to reveals that it automatically sends crashes as soon as possible.

    You would have to modify this class to ask the user whether to send crashes, e.g. the next time you initialise the Airbrake class.

    For example, HockeyApp has an option to do this in its CrashManager class.

    Though I prefer to always automatically send crash reports to the server; there's usually no reason to bother users with this request.