I am trying to figure out how to link each and every crash with application user id. I got to know we can achieve this functionality with firebase customized key logs.
For POC purpose, I have added custom key after logged in completion and then I am crashing app on next screen. But Custom keys are not getting logged on console.
Here, how I am adding custom key :
FirebaseCrashlytics.getInstance().setCustomKey("userId", serverLoginResponse.getBody().getUserId());
And I am crashing application on next screen using divide by 0
.
int i = 2;
int j = i / 0;
But keys are not gettging tagged to crash. Please see screenshots.
on Crash Details Screen :
Please let me know if I am doing anything wrong here.