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?
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.
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.
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.
Crashlytics automatically sends any crash reports to Firebase the next time the application is launched. Call the setCrashlyticsCollectionEnabled method to toggle Crashlytics collection status.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With