-
-
Notifications
You must be signed in to change notification settings - Fork 233
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
Setting enableNativeCrashHandling to false does not disable native reports #317
Comments
@Dave0921 thanks for reporting this. so the indeed, |
if you don't want Native events, I'd recommend using the |
@marandaneto Thanks for the suggestion. Unfortunately for my use case, I also require Flutter errors to be reported as well. |
For what its worth, I'm looking for this so that when debugging we don’t send native crashes to Sentry, but in release builds, we do send. Trying to achieve this without needing to change anything in the local setup. |
fair case but for this, I'd consider not initing the |
https://github.com/getsentry/sentry-dart/releases/tag/4.0.6 pay attention to this before disabling this feature: |
@Dave0921 could you please describe why do you need to disable the native crash reports? I believe there might be a sign that we are missing a different feature to solve your use case, like adding an There are side effects by disabling the native crashes only like @marandaneto said it'll affect your crash-free stats. |
@Dave0921 and I work together, and I can speak about our goals. We have accomplished them with some of the advice in this thread.
The first 2 are fairly simple and can be achieved by using the The third is tricky when combined with the first requirement, but we found a solution. Android solution below. Only outstanding issue is that the environment for startup crashes will always be Production. We are fine with this.
iOS is similar.
|
thanks, the 3rd item should be easier to set up, and its been tracked here #265 |
Thanks @MisterJimson for the detailed description. Makes sense. |
Platform:
IDE:
split-debug-info and obfuscate (Flutter Android or iOS) or CanvasKit (Flutter Web):
Platform installed with:
Output of the command
flutter doctor -v
below:The version of the SDK (See pubspec.lock):
4.0.5
I have the following issue:
Setting enableNativeCrashHandling to false does not disable native Android/iOS errors from being reported to sentry.io.
Steps to reproduce:
enableNativeCrashHandling
tofalse
in example appSwift fatalError
button (app crashes)Swift fatalError
button again (app crashes)Actual result:
Expected result:
The text was updated successfully, but these errors were encountered: