Mustafa
Mustafa

Reputation: 61

Is there any solution for send non fatal crash from ios with crashlytics?

I try to find any solution to send non fatal exception on iOS with crashlytics service. Is that possible? How to achieve this?

Upvotes: 6

Views: 4199

Answers (2)

Chris Horsfield
Chris Horsfield

Reputation: 173

https://docs.fabric.io/apple/crashlytics/logged-errors.html

Using the API You can record an NSError using this API:

[CrashlyticsKit recordError:error];

Crashlytics.sharedInstance().recordError(error)

Upvotes: 2

rkwatra
rkwatra

Reputation: 215

Crashlytics introduced this functionality in Jan 2016 and published this blog post: https://www.crashlytics.com/blog/introducing-the-ability-to-log-nserrors

Implementation Details:

https://docs.fabric.io/ios/crashlytics/logged-errors.html

Very similar to what Crashlytics provides for Android where you have to use try/catch: http://support.crashlytics.com/knowledgebase/articles/202805-logging-caught-exceptions

Crashlytics also talks about why they do not support NSException, but NSError instead.

Answering an old question in case someone stumbles upon it as I did! :)

Upvotes: 1

Related Questions