App Center | HockeyApp will be transitioning into App Center on Nov. 1, 2019.

How to auto-submit crash reports

The default configuration of HockeySDK for all platforms is that the user is asked whether they want to submit a crash report. To post the crash reports automatically (i.e. without any user interaction), you need to add the following code to the SDK initialization:

iOS

Add the following line after [[BITHockeyManager sharedHockeyManager] configureWithIdentifier: ...] but before the call to [[BITHockeyManager sharedHockeyManager] startManager]:

[[BITHockeyManager sharedHockeyManager].crashManager setCrashManagerStatus:BITCrashManagerStatusAutoSend];

OS X

Add the following line after [[BITHockeyManager sharedHockeyManager] configureWithIdentifier: ...] but before the call to [[BITHockeyManager sharedHockeyManager] startManager]:

[[BITHockeyManager sharedHockeyManager].crashManager setAutoSubmitCrashReport:YES];

Android

Implement the method shouldAutoUploadCrashes from the class CrashManagerListener as follows:

CrashManager.register(this, APP_ID, new CrashManagerListener() {
  public boolean shouldAutoUploadCrashes() {
    return true;
  }
});

Windows Phone

Set the first parameter of the method HandleCrashes to true:

HockeyApp.CrashHandler.Instance.HandleCrashes(true);