amplitude / Amplitude-Android

Native Android SDK for Amplitude
MIT License
164 stars 90 forks source link

How to set withUserProperties in LogEvent #394

Closed wlxo0401 closed 4 months ago

wlxo0401 commented 6 months ago

Amplitude.instance().logEvent("complete_login_drv", withEventProperties: nil, withUserProperties: withEventProperties)

The above code is for Amplitude-iOS.

image_2024_03_07T05_50_47_041Z

But I can't see it on Android. How can I use it?

izaaz commented 6 months ago

@wlxo0401 - It doesn't look like its supported in this library. You'll need to call setUserProperties first so that the user properties are assigned to that user. And then when you track an event, the user properties will get attached to the event that gets fired (this happens within Amplitude backend)

Out of curiosity - is there a reason why you aren't using the new SDK? This functionality is supported in the new SDK.

This SDK is in maintenance mode.