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

Viewed 769

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

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

Related