Skip to content

User properties don't override with last version (2.0.0) #60

@jgauthie

Description

@jgauthie

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).
screen shot 2018-04-09 at 16 54 21

Here is what the Segment's debugger shows, which is good so far:
screen shot 2018-04-09 at 16 52 25
then:
screen shot 2018-04-09 at 16 52 35

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:
screen shot 2018-04-09 at 16 53 02

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions