How to treat unmanaged (Unity) exceptions as “crashes” instead of “non-fatals” in Crashlytics

13
March 21, 2019, at 02:30 AM

We use Unity 2018.1.6f1 and apparently Crashlytics 2.6.8 (sorry for being so imprecise, I can't find the version number anywhere except of Plugins/Android/crashlytics/libs/crashlytics-2.6.8.jar giving an idea).

A Unity game can crash to the home screen (we are talking Android here) when any exception is not handled. As the programmer I'd call this a "crash", and I'd love to see in Fabric's report tools how many people have these crashes to home screen.

However Fabric.Internal.Crashlytics.CrashlyticsInit.RegisterExceptionHandlers() sets AppDomain.CurrentDomain.UnhandledException += HandleException;, which internally calls Crashlytics.RecordCustomException which, as per documentation, results in

All custom exceptions will appear as “non-fatal” issues in your iOS and Android Fabric dashboards.

As these unhandled exceptions are in no way "non-fatal" to the apps lifecycle - is there any way to change this to be a proper "crash"?

Tools like Fabric's "Latest Release" tab show how many "crash-free users" there are on a release, but that's only taking "crashes", not "non-fatal issues", into account (which makes sense).

READ ALSO
How to end android Subscription when a certain condition is met?

How to end android Subscription when a certain condition is met?

I have a dictionary android app where a user purchases a subscription after the user queries a certain number of words suppose say 1000, I want the subscription to end, do I need a server to verify this? google play console does not seem to have this option

43
Android studio emulator resolution problems

Android studio emulator resolution problems

I have a computer with 32Gb RAM and with the Windows 10 OSMy problem is that every time I run the android studio emulator, it does not matter which model you choose, you always see the silhouette of the phone with the black interior and the upper left corner...

44
Android Studio: BroadcastReceiver missing import classes

Android Studio: BroadcastReceiver missing import classes

I am following an online video class that is making a simple messaging appI have reached the point where we make a LocalBroadcastManager, and for this to work we needed to make a BroadcastReceiver

15
Android vpnservice packet dropping without local server

Android vpnservice packet dropping without local server

I need to filter some device packets using android vpnserviceI looked through a lot of examples and find out that all of them using local/remote server

12