Hello! I'm looking for some help with an Android i...
# support
m
Hello! I'm looking for some help with an Android implementation where I am seeing traits reported in Rudderstack that I'm not setting in my Android app
m
Hey There! 👋 Your message has been received by the RudderStack team. Our standard customer support hours are 9-6 PM EST, but we will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
Hi Gareth, if you send an Identify event, any subsequent event will have the details sent by the identify event in the traits object.
m
@shy-kite-21035 Thanks for the response. So I'm calling
rudderClient?.identify(userId)
with a string and
rudderClient?.identify(userId, rudderTraits, null)
where the only rudderTrait is a
sign_up_source
string. The reporting I'm seeing on all my events has:
Copy code
"traits": {
            "anonymousId": "123456",
            "id": "123",
            "userId": "123"
        },
From my understanding, the userId is set by
rudderClient?.identify(userId)
- I don't know where
id
value is coming from (it is always set to the same as
userId
)
m
Hi Gareth, the id is the same as the user_id as per the docs . Which version of the Android SDK are you using since in the JS SDK I don't see the id being sent.
m
I'm on Android version
1.17.0
. Thanks for the doc - however I would expect this to be consistent with our iOS implementation, which is not recording both
id
and
userId
as traits (also calls identify(), but only shows a
userId
)
m
Can you share the identify() event that you are sending?
m
From the iOS version?
m
Yes
m
Copy code
rudderStackType: any RudderStackCreator.Type = RSClient.self
....
rudderStackType.instance().identify(userId)
m
So you are not passing any other info to the identify call like the category or name? lIke this
m
on iOS we are not seeing this problem, only on Android. The only extra info given to the identify call is a rudderTraits object
rudderClient?.identify(userId, rudderTraits, null)
which has only a
sign_up_source
string value in it
m
Hi Gareth, can you move to the latest android version?