-
-
Notifications
You must be signed in to change notification settings - Fork 234
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
Provide a way to cause an example native crash from Flutter #219
Comments
that sounds reasonable, our Native SDKs do that already See the Apple SDK: https:/getsentry/sentry-cocoa/blob/master/Sources/Sentry/SentrySDK.m#L202-L206 |
if you need this right now, you can get inspiration from here https:/getsentry/sentry-dart/blob/main/flutter/example/android/app/src/main/kotlin/io/sentry/samples/flutter/MainActivity.kt and here https:/getsentry/sentry-dart/blob/main/flutter/example/ios/Runner/AppDelegate.swift We do have this in our built-in samples. |
It's a good idea and we should probably use that on our Wizards at Sentry |
I would really appreciate that for testing! Any progress on this one? |
Looks like @buenaflor assigned himself 🥳 For reference, how C# does it: https:/getsentry/sentry-dotnet/blob/bea3fcf35dc0a2787dbf9c96931ec9895989907c/src/Sentry/SentrySdk.cs#L675-L723 |
I am trying to migrate from the flutter_sentry package which has this option.
In hindsight I found myself using this often to test the correct integration.
It would be great if there was something like
SentryFlutter.nativeCrash()
which would use the method channel to create an example crash on the native side.The text was updated successfully, but these errors were encountered: