Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set withUserProperties in LogEvent #394

Closed
wlxo0401 opened this issue Mar 7, 2024 · 1 comment
Closed

How to set withUserProperties in LogEvent #394

wlxo0401 opened this issue Mar 7, 2024 · 1 comment
Labels
question Further information is requested

Comments

@wlxo0401
Copy link

wlxo0401 commented Mar 7, 2024

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?

@wlxo0401 wlxo0401 added the question Further information is requested label Mar 7, 2024
@izaaz
Copy link
Contributor

izaaz commented Mar 7, 2024

@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.

@izaaz izaaz closed this as completed Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants