amplitude / amplitude/Amplitude-iOS

Identify does not always update user values

Offen
#471 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug
Vorherrschende Sprache
Objective-C
Sterne
328
Forks
194
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

## 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
- SDK Version: 353b334924d05c67a85d403584a065999a778c2b
- Device: iPhone 12
- OS Version: iOS 17.1

## 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)
```

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.