Skip to content

Commit 2dca2cc

Browse files
authored
unity: android crash handler
1 parent 60fd709 commit 2dca2cc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/platforms/unity/native-support/index.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ The native crash support for Android and iOS is achieved by modifying the genera
2626

2727
When choosing Android as a build target, Unity creates a Gradle project. During the Unity build process, the SDK embeds the [Android SDK](/platforms/android/), as well as the provided options, by adding it to the generated project's Android Manifest.
2828

29+
Note that [Unity has an Android crash handler which takes treats the crash information as a string](https://docs.unity3d.com/6000.0/Documentation/Manual/android-handle-crashes.html). This doesn't allow Sentry to symbolicate the crash and in result becomes a very low quality crash dump.
30+
We recomment disalbing that through: `-androidChainedSignalHandlerBehavior:disabled`. For more information, [read the Unity documentation on this topic](https://docs.unity3d.com/6000.0/Documentation/Manual/android-handle-crashes.html).
31+
2932
### iOS
3033

3134
When building your game for iOS, Unity exports it as an Xcode project. By modifying that generated project, the SDK adds the [iOS SDK](/platforms/apple/guides/ios/) to provide native support. It adds the initialization code to the `main.m` and generates the options provided by the editor configuration window as `SentryOptions.m`. The SDK also copies the `SentryNativeBridge` that enables the C# layer to communicate with the iOS SDK. This means that there's no need to use the Unity [built-in crash reporting](https://docs.unity3d.com/ScriptReference/CrashReport.html) functionality.

0 commit comments

Comments
 (0)