-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setUserId(null) not working #1247
Comments
@EatSafeClaudia any chance you could provide a code example of your usage, e.g. how you're setting the null and how you're sending events after changing it, are the events immediately after setting to null showing as the old user id and then it changes to null eventually? Or does it consistently always stay on the old user id and never gradually change to null. |
Closing due to no response and unable to reproduce locally. Will re-open on request if this is still an issue. Thanks Loving
|
@Salakar I'm having this issue aswell. I'm currently running it in a Redux middleware. I have verified that the function is actually running with a I mean, it could work.. but I would prefer actually setting it to null. Platform: Android Thanks in advance for your help! EDIT:
In Firebase I see the 'login' event, but I don't see the actual setting of the user id. |
Still having this issue, your description of use, @lukasgjetting, is exactly mine. I am having the issue after upgrade to RN 0.56.0 and RNFB 4.3.8. |
I get the same issue - trying to call RN version: 0.57.7 |
@lukasgjetting @EatSafeClaudia @tjjjwxzq not sure what to suggest here, we call the native method directly with the value provided to it from JS, so if you send a null it calls Analytics re-write for v6 is complete and it has some minor changes; all the methods return Promises now so this removes the chance that this could be a race condition (e.g. RN bridge batches method calls, so setting a user id may be being sent along with other method calls, e.g. logEvent at the same time, with a promise now you can ensure that it has set the user before the next analytics method is called). See https://github.com/invertase/react-native-firebase/blob/master/CHANGELOG.md for details on the v6 release and upgrading notes / caveats - if you wish to try it out early. |
This issue is happening on iOS on the following versions: |
Why has this been closed? It's still an issue in |
seems to be an underlying sdk issue. I believe the suggested workaround was to set to empty string |
can't find the related issue now but it's in the tracker somewhere just not linked here, it was from a separate issue tho |
Pretty sure this still exists in v7. Assuming there is no way to unset this wouldn't setting it to a new UUID each time be better than an empty string so that you don't merge a bunch of users under the "empty" id? |
This is more than a year old, if you still have a problem please post a new issue with full details and an App.js that reproduces please |
The issue still exists. Setting userId to null doesn't work, it keeps the same old id. |
Issue
setUserId(null) doesn't seem to work.
Once a user logs in, I send their id. When they log out, I want to reset their userId. Currently I do a setUserId(null), but looking on firebase, events continue being tracked under the previous user id.
Environment
Android
Android
0.54.1
4.2.0
Analytics
The text was updated successfully, but these errors were encountered: