How to set user information in Crashlytics api in Android

I'm trying to set up user information for crash reports in crashlytics in an Android application, so that will help me find out which of our users experienced this crash. I researched and discovered that 3 APIs can set user information in a crash report.

it

void Crashlytics.setUserIdentifier(String identifier); void Crashlytics.setUserName(String name); void Crashlytics.setUserEmail(String email); 

All APIs are recommended. Everything is documented at http://support.crashlytics.com/knowledgebase/articles/120548-how-do-i-set-user-information-

But I have no idea 1. How do I get the user IDs, name and email address that are entered into these APIs? 2. What is the place in the program to call these crashlytics APIs?

Share some ideas on how to implement this.

Hello

Annada

+5
source share
2 answers

If your application uses some form of user identification (for example, login, email address, phone number, device identifier), you can use this as user information about crashes. I suppose you can generate a user ID when your application is first launched and, for example, save it in the general settings. It will be shown in the upper right corner of the detailed crash view.

i.e. I set the id and name as soon as the user authenticates in my application.

enter image description here

Usually you want to install them as soon as possible (as your data arrives), and all information has been initialized.

+2
source


It looks like the user interface in Fabric has been changed.

  • Select one of the emergency situations.
  • Click Version in Recently Activity enter image description here

  • In the upper right corner of the page with detailed information you should see information about the user. enter image description here

+8
source

Source: https://habr.com/ru/post/1245690/


All Articles