snowplow / snowplow-android-tracker

Snowplow event tracker for Android. Add analytics to your Android apps and games
http://snowplowanalytics.com
Apache License 2.0
110 stars 63 forks source link

Fix adding user ID set in SubjectConfiguration to events #595

Closed matus-tomlein closed 1 year ago

matus-tomlein commented 1 year ago

Describe the bug

Report from Dhruvi on Discourse:

Recently we have tried upgrading our android tracker to v5.0.0 from v1.7.0. The collectors are receiving the events but it doesnt have the user_id. Below is how we have tried setting the user id with SetUserId. Can I get some help in understanding what is going wrong with below setup ?

To Reproduce

SubjectConfiguration subjectConfiguration = new SubjectConfiguration();
subjectConfiguration.setUserId(AccountManager.INSTANCE.getId());

return Snowplow.createTracker(context,
        trackerName,
                ...
        subjectConfiguration
);