Open WeiLingQiang opened 3 months ago
The native crash reporting relies on the respective native SDK. This means sentry-cocoa
for macOS and iOS, sentry-jave
for Android, and sentry-native
for Windows and Linux. Those SDKs handle crash reporting slightly differently.
sentry-cocoa
tries to send the crashreport but might fail to do so. It will guarantee to report the crash during the startup tho.It's not a random decision by the Unity SDK when to send those events but rather the Unity SDK relying on the native SDKs to work with their platform's requirements and restrictions.
Environment
How do you use Sentry? Sentry SaaS (sentry.io) or self-hosted/on-premise (which version?)
Which version of the SDK? v2.0.6
How did you install the package? (Git-URL, Assetstore) Git-URL
Which version of Unity? 2021.3.33f1
Is this happening in Unity (editor) or on a player like Android, iOS, Windows? ALL
Steps to Reproduce
Expected Result
Report Native immediately after it crashes instead of waiting until the second time you open the app.
Actual Result
Any logs or screenshots