Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Crashlytics: How to see user name/email/id in crash details?

I am using Crashlytics for collecting crashes from iOS app. To make crash more specific I want to see user name/email/id in crash details.
For this goal I use such code:

[Crashlytics setUserIdentifier:@"userID"];
[Crashlytics setUserEmail:@"[email protected]"];
[Crashlytics setUserName:@"userName"];

When crash happens I cannot find a way to see this information in crash details.
I see such screen:
enter image description here

Question: How can I see user name/email/id in crash details?

like image 393
Vlad Papko Avatar asked Jan 19 '16 22:01

Vlad Papko


People also ask

How do I check my Crashlytics logs?

Once you have Crashlytics up and running in your app, you can navigate to Crashlytics in your Firebase Console underneath 'Quality' and start reviewing the reports as they come in. If this page still tells you to setup, build or run your app then you have not correctly setup Crashlytics in your app (see Usage).

What is dSYM file Crashlytics?

dSYM files store the debug symbols for your app. They contain mapping information to decode a stack-trace into a readable format. The purpose of dSYM is to replace symbols in the crash logs with the specific methods so it will be readable and helpful for debugging the crash.

What is COM Crashlytics data?

Crashlytics synthesizes an avalanche of crashes into a manageable list of issues, provides contextual information, and highlights the severity and prevalence of crashes so you can pinpoint the root cause faster.


2 Answers

This is how I am doing it

Crashlytics.sharedInstance.userIdentifier = (user) ? user : @"Unknown";
Crashlytics.sharedInstance.userName = (firstName && lastName) ? [NSString stringWithFormat: @"%@ %@", firstName, lastName] : @"Anonymous";

I am doing it once when the user data is available. Shows up in Fabric like this (when viewing details for a single crash): enter image description here

UPDATE

  • [CrashlyticsKit setUserIdentifier:@"123456789"];

  • [CrashlyticsKit setUserEmail:@"[email protected]"];

  • [CrashlyticsKit setUserName:@"Awesome AppUser"];

Enhance Crash Reports

like image 68
juhan_h Avatar answered Oct 11 '22 22:10

juhan_h


It's now in the bottom of a issue page under section 'Recent Activity'

Click into a version, you will see the more specific information. And the user information.

But there is another question, the crash and error was logged in Fabric is organized by group, and I have tested that a crash report can only record the recently triggered user information if a new user triggered this crash the user's information will replace the existing one.

Update I have asked for Twitter's support and found what I need. In issue list an issue item may combined with some same crashes or errors, in other word an item contains some crashes all in one. So a page represent a crash happened and detail information will display in it.THE MOST IMPORTANT IS the report can be scroll through in the top of the page then you can find the specific user information.

like image 44
lynulzy Avatar answered Oct 11 '22 22:10

lynulzy