Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Crashlytics record error

I am recording an error using Crashlytics for iOS.

NSDictionary *detail = @{@"message":errorWithURL, @"response":jsonString};
[[Crashlytics sharedInstance] recordError:[NSError errorWithDomain:@"send request" code:0 userInfo:detail]];

But I do not see the message in Crashlytics console.

See here.

Am I doing something wrong here?

like image 894
Abdullah Umer Avatar asked Jul 13 '17 12:07

Abdullah Umer


People also ask

How does the Crashlytics crash report work?

The crash report will appear in your Crashlytics dashboard with the event type Crash, the event summary stack trace will also be referenced as a Fatal Exception. By default non-fatal errors are recorded.

How to record non-fatal errors in Crashlytics?

By default non-fatal errors are recorded. The crash report will appear in your Crashlytics dashboard with the event type Non-fatal, the event summary stack trace will also be referenced as a Non-fatal Exception. To associate key/value pairs with your crash reports, you can use the setCustomKey method This accepts a maximum of 64 key/value pairs.

How do I get Crashlytics crash reports in the Firebase console?

To continue getting crash reports in the Firebase console, upgrade to use the latest Firebase Crashlytics SDK: v8.10.0 for iOS+ , v18.2.6 for Android, or v8.7.0 for Unity . This page provides troubleshooting help and answers to frequently-asked questions about using Crashlytics.

How do I set Crashlytics collection status?

Crashlytics automatically sends any crash reports to Firebase the next time the application is launched. Call the setCrashlyticsCollectionEnabled method to toggle Crashlytics collection status.


1 Answers

From Fabric Docs - "Data contained within the userInfo object are converted to key-value pairs and displayed in the keys/logs section within an individual issue."

So press "View all sessions" button upper right corner, then go to keys/logs section on top of the page

https://docs.fabric.io/apple/crashlytics/logged-errors.html#using-the-api

like image 112
Sergnsk Avatar answered Sep 19 '22 14:09

Sergnsk