Skip to content
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

Custom User Properties Not Updated #384

Open
3a4or opened this issue Aug 10, 2023 · 3 comments
Open

Custom User Properties Not Updated #384

3a4or opened this issue Aug 10, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@3a4or
Copy link

3a4or commented Aug 10, 2023

I have A feature flag on my Amlitude portal and I added a segment with custom user property to this feature flag so it is on or off depending on this segment, the problem is the feature flag is always on even if I change the value of the user property to makes the flag off.
For more clarification find the following example:|
I have a feature flag called "new-feature" with a segment where it's a custom user property "isNewFeatureSeen" is none, this means this flag will be on for any user that didn't change the value of "isNewFeatureSeen", now I changed the value from my Android app with the following code:
val eventProperties = JSONObject().put("isNewFeatureSeen", "yes")
Amplitude.getInstance().setUserProperties(eventProperties)
Amplitude.getInstance().identify(Identify().set("isNewFeatureSeen", "yes"))
Amplitude.getInstance().logEvent("sync", eventProperties)

after calling this code the feature flag "new-feature" was supposed to be off the next run of my Android app but it always returned on and sometimes after waiting too much time (between 2 to 120 mins) it returned on as expected, so this strange behavior and I don't know where is the problem, so any help about this?

for more information:
my Experiment builder is:
ExperimentUser.builder()
.userId("my userId")
.build()

My ExperimentClient:
initializeWithAmplitudeAnalytics(context as Application, "my key", ExperimentConfig())

thanks in advance and looking forward to hearing from you soon.

@3a4or 3a4or added the bug Something isn't working label Aug 10, 2023
@Mercy811
Copy link

Hi @3a4or, could you provide the following information so that dive deep into what was happening there:

  • to confirm the identify event was actually sent, could you share the link of your workspace, a link to a user profile which has sent identify and sync events

@3a4or
Copy link
Author

3a4or commented Aug 11, 2023

Hi @Mercy811
I sent the required information to your email (xinyi.ye@amplitude.com)

@3a4or 3a4or closed this as completed Aug 11, 2023
@3a4or 3a4or reopened this Aug 11, 2023
@3a4or
Copy link
Author

3a4or commented Aug 14, 2023

Hi @Mercy811
Any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants