Crashes and errors
Good news, or your app isn't reporting yet. With the SDKs, crashes are caught automatically and sent the next time the app starts. You can also report errors your code handles.
In your app, with the SDK
// Crashes: nothing to do, except in WinUI 3 (App constructor):
UnhandledException += (_, e) => BeeAppieSdk.Instance.ReportCrash(e.Exception);
// Handled errors:
try { … }
catch (Exception e)
{
BeeAppieSdk.Instance.ReportException(e);
}
// The steps before it (MAUI pages are recorded already):
BeeAppieSdk.Instance.Screen("Cart");
BeeAppieSdk.Instance.AddBreadcrumb("Sync started");
// Crashes and ANRs: nothing to do. Handled errors:
try { … } catch (e: Exception) {
BeeAppie.reportException(e)
}
// The steps before it (activities are recorded already):
BeeAppie.screen("Cart") // e.g. from Navigation Compose
BeeAppie.addBreadcrumb("Sync started")
// Crashes and hangs: nothing to do. Handled errors:
do { … } catch {
BeeAppieSDK.reportError(error)
}
// The steps before it:
BeeAppieSDK.screen("Cart") // e.g. in .onAppear
BeeAppieSDK.addBreadcrumb("Sync started")
// Crashes and uncaught Dart errors: nothing to do. Handled errors:
try { … } catch (error, stack) {
BeeAppie.reportError(error, stack);
}
// The steps before it:
BeeAppie.screen('Cart'); // e.g. from a NavigatorObserver
BeeAppie.addBreadcrumb('Sync started');
// Crashes and uncaught JS errors: nothing to do. Handled errors:
try { … } catch (error) {
BeeAppie.reportError(error);
}
// The steps before it:
BeeAppie.screen('Cart'); // e.g. from React Navigation's onStateChange
BeeAppie.addBreadcrumb('Sync started');
// Exceptions nobody caught: nothing to do. Handled ones:
try { … } catch (Exception e) {
BeeAppieSdk.ReportException(e);
}
// The steps before it (scenes are recorded already):
BeeAppieSdk.Screen("Inventory");
BeeAppieSdk.AddBreadcrumb("Shop opened");
Or with the HTTP API
POST /v1/issues
{ "exceptionType": "NullReferenceException",
"message": "Object reference not set…",
"stackTrace": "at Game.Save() …",
"isCrash": false,
"appVersion": "1.0" }
With the usual headers: your app key, and the user's token.
- Nothing is recorded until the user agrees: ask on your privacy screen, then set the consent (see Privacy in the SDK guide). The ready-made profile screen has the switches too.
- Without consent to error reports, reports are dropped, unless you turn on Anonymous error reports in the app's settings: then they arrive without any id, trail or properties (see Privacy).
- Each report carries the activity trail: the screens, events and steps before it. Never put personal data in a step.
- Each report also carries the device's state when it happened: build number, how long the app had run (crashes within 5 seconds are marked On launch), foreground or background, memory, free storage, where the app was installed from, orientation, screen, and whether it was an emulator or a likely rooted device. The issue page splits reports by each. Desktop and Unity apps on iOS set the build number themselves (
AppBuild/appBuildin the options). - A crash is sent on the next launch: start the app again after it crashes. Under the Xcode or Android Studio debugger, the debugger catches crashes first.
- Release builds hide your code's names: on paid plans, upload Android mappings and iOS symbols to read them (Crash reports › Readable crashes).
Ready when you are
BeeAppie opens to new apps soon. Leave your email and we will tell you when you can sign up.
Join the waitlist SDKs and downloads