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

Provide a way to cause an example native crash from Flutter #219

Closed
kuhnroyal opened this issue Dec 3, 2020 · 5 comments · Fixed by #2239
Closed

Provide a way to cause an example native crash from Flutter #219

kuhnroyal opened this issue Dec 3, 2020 · 5 comments · Fixed by #2239

Comments

@kuhnroyal
Copy link
Contributor

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.

@marandaneto
Copy link
Contributor

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
I'd just need to add a new method in the bridge and call them accordingly :)

@marandaneto
Copy link
Contributor

@bruno-garcia
Copy link
Member

It's a good idea and we should probably use that on our Wizards at Sentry

@tomas-dorda
Copy link

I would really appreciate that for testing! Any progress on this one?

@bruno-garcia
Copy link
Member

Looks like @buenaflor assigned himself 🥳

For reference, how C# does it: https:/getsentry/sentry-dotnet/blob/bea3fcf35dc0a2787dbf9c96931ec9895989907c/src/Sentry/SentrySdk.cs#L675-L723

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

Successfully merging a pull request may close this issue.

8 participants