-
Notifications
You must be signed in to change notification settings - Fork 27
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
allow optional reuse of anonymous id #229
Conversation
@beradeep thanks |
I dont think this will work. posthog-android/posthog/src/main/java/com/posthog/PostHog.kt Lines 552 to 557 in 6185d73
once you identify an user, the given distinctId and the anonymousId are merged within a single user.
if you Otherwise there will never be a "guest mode". for example:
with this approach, the does that make sense? |
Yes, it does make sense. I missed out on that part; we shouldn't merge all users on a device. Thanks for such a nice explanation. |
@beradeep i think we should not allow this as well
when the new flag is enabled, otherwise we will lose the anon id (guest mode). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing 2 tests otherwise LGTM
💡 Motivation and Context
Fix #224
💚 How did you test it?
Added unit test.
📝 Checklist