firebase-analytics: Unable to set userId to null
Describe the bug setUserId method does not accept null.
https://github.com/capacitor-community/firebase-analytics/blob/master/src/web.ts#L83
To Reproduce
FirebaseAnalytics.setUserId({
userId: null,
});
Expected behavior When the user logs out, it must be possible to assign null value to it.
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 17 (1 by maintainers)
Commits related to this issue
- fix(#49): setUserId accept null too — committed to markxoe/firebase-analytics by markxoe 3 years ago
Is this project dead?? 24/03/2022 and still isn’t possible set null the userId?
It’s not posible to change the user with this plugin. The documentation says: ‘Setting the value to null removes the user property.’ But with this plugin is not posible to set the user to null. In my iOS app when a someone logs out and then logs in with another user, the analytics persist the old user.