-
Notifications
You must be signed in to change notification settings - Fork 43
Description
Hi,
After few emails and tests with people from both Amplitude and Segment, we found out a strange behaviour in the last version of this SDK.
Basically, every time you try to override a user property that is already existing on the user by providing a new value. The old value is kept, and you cannot update it.
In order to reproduce the bug, just set up a new XCode project with the following pods:
pod 'Analytics', '~> 3.0'
pod 'Segment-Amplitude'
Then do an identify call with a trait (key: value) followed by another identify call with the same key but another value (key: value2).

Here is what the Segment's debugger shows, which is good so far:

then:

Normally, you should see the value2 appears under the key user property under Amplitude's UI for the corresponding user.
By using the version 2.0.0 of this SDK, it doesn't work:

However, by downgrading to version 1.5.0 it worked, that's the fix I'm using right now.
pod 'Analytics', '~> 3.0'
pod 'Segment-Amplitude', '~> 1.5.0'
Attached, some screenshots to showcase the problem.
Thanks!