amplitude / Amplitude-iOS

Native iOS/tvOS/macOS SDK
MIT License
303 stars 193 forks source link

Identify does not always update user values #471

Open lukas2 opened 10 months ago

lukas2 commented 10 months ago

Expected Behavior

When I write this:

let identify = Identify()
identify.set(property: "someId", value: someValue)
identify.set(property: "anotherId", value: anotherValue)
amplitude.identify(identify: identify)

and if there was a value for "anotherId" before, then both values should be set to someValue and anotherValue respectively.

Current Behavior

Currently the second value, here: "anotherValue" is not updated and basically discarded.

Possible Solution

Steps to Reproduce

See code above

Environment

Note

This works correctly if anotherValue was not set before:

let identify = Identify()
identify.set(property: "someId", value: someValue)
identify.set(property: "anotherId", value: anotherValue)
amplitude.identify(identify: identify)