Search code examples
iosobjective-ccrashlyticsgoogle-fabric

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?


Solution

  • 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