Signature
Future completes once the call reaches the native SDK. It does not wait for the network.
Parameters
Merge rules
Attributes are merged, not replaced. If you set
email and subscriptionTier, then later set monthsSubscribed, all three are kept.- A field you leave
nullis unchanged. Passing onlylanguageupdateslanguageand nothing else. custommerges key by key. A key you send overwrites the stored value for that key; keys you don’t send are kept.- You can’t clear a single field.
nullmeans “leave as is”. To clear everything, callreset(). - An empty
EncoreUserAttributes()does nothing.
identify() behaves differently: attributes passed there replace the stored set.
Usage
Basic attributes
Custom attributes
Location and language
Call
setUserAttributes() after configure(). Attributes set before the SDK is configured are not stored.Related
- EncoreUserAttributes: every field, its format, and an example value
- identify(): sets a user ID and attributes in one call