Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Firebase-Analytics : Not able to set null to userid and userproperty

I'm using below code snippet to clear userid and userproperty value by setting "null" but the value is getting retaining in GoogleAnalytics, Firebase.

FirebaseAnalytics.getInstance(context).setUserId(null); 
FirebaseAnalytics.getInstance(context).setUserProperty("sessionId", null); 

Userid and sessionid value will get set if user loggedin and if user logout userid and sessionid values needs to be clear.

Can anyone help me to sort out this issue

Thanks, Kamal

like image 593
Kamal Avatar asked Nov 16 '22 22:11

Kamal


1 Answers

I hit the same bug and opened a GitHub issue.I got that answer:

"It looks like the issue isn't the setUserId not working. The user id is indeed removed, but the debugView isn't showing this, so this is a UI issue. "

Monitor the issue here: https://github.com/firebase/firebase-android-sdk/issues/3602

like image 88
Eren Avatar answered Jan 19 '23 01:01

Eren