I'm using the Crashlytics.logException()
method when I want to programmatically report a non-fatal error on Crashlytics.
Although I set up a valid identifier for the current logged user when the application starts, with Crashlytics.setUserName()
, I can't see this information in the dashboard. Instead, it appears only when there is a crash (see picture).
How can I enable it for non-fatal errors too?
EDIT: I'm using Crashlytics plugin for Eclipse, 1.7.0
The username info will appear at non-fatal crashes too. Can you please check if the call to Crashlytics.setUsername()
is being done before the Crashlytics.logException()
?
See the screenshot below:
However, the logging of messages are currently not synchronously, so if the crash occurs quickly, all or none of these statements can make it over. The writing of the data is done in a background thread, so the crash that is processing will always trump the other thread, so in this case, the crash will always trump when the log is bring written even though it might've started up first.
I solved this simply by updating the Crashlytics library.
I still had the 1.7.0 version, without Fabric. I upgraded the account and I downloaded the new 2.0 package using the new guide and now I can see the user's information in all the non-fatal errors.
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