简体   繁体   中英

How can I record a custom iOS Crashlytics exception as fatal rather than non-fatal?

I have a fatal iOS crash that I have to record using recordCustomExceptionName:reason:frameArray: for various reasons. The current triage process at my company prioritizes fatal Crashlytics issues over non-fatal, so I want to mark it correctly as the fatal issue that it is. Is there any way to do that?

You can use fatalerror("This is a fatal error") for iOS in xcode and throw new RuntimeException("Test Crash"); for android and it'll be reported as a fatal crash in Crashlytics.

This is being tracked and further explained on Github here . For now, the feature does not exist.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM