CustomActivityOnCrash icon indicating copy to clipboard operation
CustomActivityOnCrash copied to clipboard

How to use with Sentry

Open buddudevelopers opened this issue 1 year ago • 0 comments

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?

buddudevelopers avatar Jul 12 '23 04:07 buddudevelopers