You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set this boolean to `false` to disable the native SDK. This will disable all native crash and error handling and, instead, the SDK will only capture errors on the upper layer.
Set this boolean to `false` to disable the auto initialization of the native layer SDK. Doing so means you will need to initialize the native SDK manually. Do not use this to disable the native layer.
Set this boolean to `false` to disable the auto initialization of the native layer SDK. Doing so means you will need to initialize the native SDK manually. Do not use this to disable the native layer, but instead use [enableNative](#enableNative).
590
+
To disable the native layer, use [enableNative](#enableNative).
587
591
588
592
You should follow the [guide to native initialization](/platforms/react-native/manual-setup/native-init/) if you chose to use this option.
589
593
594
+
</PlatformSection>
595
+
596
+
<PlatformSectionsupported={["flutter"]}>
597
+
598
+
You should follow the [guide to native initialization](/platforms/flutter/native-init/) if you chose to use this option.
Set this boolean to `false` to disable hard crash handling from the native layer. Doing so means that the SDK won't capture events for hard crashes on Android and iOS if the error was caused by native code.
595
607
@@ -622,7 +634,6 @@ Set this boolean to `false` to disable the scope sync from Java to NDK on Androi
622
634
<ConfigKeyname="attachThreads">
623
635
624
636
Set this boolean to `true` to automatically attach all threads to all logged events on Android.
description: "Learn how to manually initialize the native SDKs."
5
+
---
6
+
7
+
By default, the Flutter SDK initializes the native SDK underneath the `init` method called on the Flutter layer. As a result, the SDK currenty has a limitation of not capturing native crashes that occur prior to the `init` method being called on the Flutter layer. You can initialize the native SDKs yourself to overcome this limitation or if you want to provide custom options above what the Flutter SDK currently provides.
8
+
9
+
To do this, set [autoInitializeNativeSdk](/platforms/flutter/configuration/options/#autoInitializeNativeSdk) to `false` in the init options:
This will prevent the Flutter SDK from initializing the native SDKs automatically.
26
+
27
+
Next, initialize the [Android](/platforms/android/configuration/manual-init/) and [iOS (using the configuration guide to initialize the Sentry Cocoa SDK)](/platforms/apple/guides/ios/#configure) native SDKs. Note that you do not need to install the native SDKs as they are already packaged with the Flutter SDK.
0 commit comments