Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use with Sentry #93

Open
buddudevelopers opened this issue Jul 12, 2023 · 0 comments
Open

How to use with Sentry #93

buddudevelopers opened this issue Jul 12, 2023 · 0 comments

Comments

@buddudevelopers
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant