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
A player built for Android can fail with Java/Kotlin or with native (NDK). Sentry's Android SDK supports both. And Sentry's gradle plugin can upload proguard/R8 files of minified builds.
sentry-android would also give support for release health, given crashes and errors were communicated downstream by the .NET SDK to reflect in the sessions.
In terms of adding it to this project, we could consider git submodule or gradle with their pros and cons. Perhaps more easily is to rely on gradle (if we can inject gradle dependencies through UPM) but for development it's easier to bring it in as submodule.
The original MVP of this project included native Android support. As prepare the project to be the new official SDK we decided to start off with the .NET-only API and add Android on a following iteration.
This issue tracks adding sentry-android.
Hello. Based on the issue, does it mean that Sentry-Unity cannot capture any native crashes at this moment?
Do you have any updates and ETA for the native Android crash support?
@canyousayyes we plan to ship this in Q3. Currently you can add the sentry-android SDK directly via gradle and it will capture native crashes. We will just make the integration easier to install and from there share some extra context data between the C# and Java/NDK layers.
Thanks for the info. Just noticed there's also #164 , does that mean we also need to install sentry-cocoa ourselves to capture native crashes on iOS side as well?
If we want to:
Capture exceptions in Unity
Send custom error events in Unity
Capture native crashes
on both Android and iOS platforms,
We need both Unity-sentry for the first 2 use cases, and (sentry-android + sentry-cocoa) for the third one. Is my understanding correct?
Activity
canyousayyes commentedon Jun 9, 2021
Hello. Based on the issue, does it mean that Sentry-Unity cannot capture any native crashes at this moment?
Do you have any updates and ETA for the native Android crash support?
bruno-garcia commentedon Jun 9, 2021
@canyousayyes we plan to ship this in Q3. Currently you can add the sentry-android SDK directly via gradle and it will capture native crashes. We will just make the integration easier to install and from there share some extra context data between the C# and Java/NDK layers.
canyousayyes commentedon Jun 9, 2021
Thanks for the info. Just noticed there's also #164 , does that mean we also need to install sentry-cocoa ourselves to capture native crashes on iOS side as well?
If we want to:
on both Android and iOS platforms,
We need both Unity-sentry for the first 2 use cases, and (sentry-android + sentry-cocoa) for the third one. Is my understanding correct?
bruno-garcia commentedon Jun 10, 2021
That's right.
We'll bundle it all for you and make sure the native layer is initialized automatically too. This is coming in the next few months.