-
Notifications
You must be signed in to change notification settings - Fork 38
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
identify() doesn't update user properties. #120
Comments
@choim4389 can you share the code snippet you use to update user properties and capture events? |
It just set user property, and track screen. |
https://posthog.com/docs/libraries/flutter
|
@marandaneto |
It seems that the change will only be reflected if the app is reinstalled. |
Please provide a MRE since everything works as expected when I test myself, it's likely something in your setup. |
It's so easy to reproduce.
And then
|
I looked into the
|
You're right, it was unclear from your first messages that you're calling identify with the same distinct id multiple times. You can as a workaround do this for now. await Posthog().identify(userId: 'test_id', userProperties: {'family_id': '1'});
await Posthog().capture(
eventName: '$set',
properties: {'$set': {'family_id': '2'}} // or $set_once for userPropertiesSetOnce
); |
@choim4389 if you upgrade your cocoapods, and generate a new build, this should be fixed. |
Thanks! I verified that it works. Isn't it being distributed as 4.6.1? |
The changes were on the Native SDKs (android and iOS), so the Flutter SDK picks up the latest compatible version. |
Version
4.6.0
Steps to Reproduce
Even though I used the same id,
identify()
doesn't update user properties(not once).How to update user's properties using flutter sdk?
Expected Result
user properties must be changed if using same distinct id.
Actual Result
user properties not changed.
The text was updated successfully, but these errors were encountered: