CustomActivityOnCrash
CustomActivityOnCrash copied to clipboard
How to use with Sentry
I want sentry to notify me of uncaught crashes on backend and CustomActivityOnCrash to show user that app has crashed but Caoc not launching its activity
class MyApp : Application() {
override fun onCreate() {
super.onCreate()
CaocConfig.Builder.create().apply()
SentryAndroid.init(this) { options ->
options.dsn = "https://e850e31230.ingest.sentry.io/4505510617350144";
// Add a callback that will be used before the event is sent to Sentry.
// With this callback, you can modify the event or, when returning null, also discard the event.
options.setBeforeSend{event,hint->
if (SentryLevel.DEBUG == event.level) return@setBeforeSend null;
else return@setBeforeSend event;
}
}
}
}
Any assistance?