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

Detect if Sentry.init is called on Android instead of SentryAndroid.init #3440

Open
romtsn opened this issue May 23, 2024 · 1 comment
Open

Comments

@romtsn
Copy link
Member

romtsn commented May 23, 2024

Description

We could detect that by Platform.isAndroid and fail the SDK (throw an exception), to let users know early that they are using the wrong static class

@markushi
Copy link
Member

There should be no reason on Android to call Sentry.init, so let's be clear to the user and throw an Exception.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

2 participants