Hi everyone! I’m trying to send the app_instance_i...
# support
f
Hi everyone! I’m trying to send the app_instance_id for Android with a track event that runs before identify but is not visible in the live events event payload. Could someone help me to solve this issue? Thank you!
Copy code
rudderOption.putExternalId("ga4AppInstanceId", appInstanceId)
 RudderClient.with(context).track(event,null, rudderOption)
k
Hey @few-activity-43960, External Id’s are accepted only on Identify calls. https://www.rudderstack.com/docs/sources/event-streams/sdks/rudderstack-android-sdk/#external-id
gratitude thank you 1
f
Hey again @kind-carpenter-27609! Is it possible to emit an identify event before the lifecycle events? I think I need to send the app instance id before the life cycle events (“error”: “ga4AppInstanceId must be provided under externalId” - on Application Installed). Thank you.
k
Hey, @few-activity-43960 , As of now there isn't a way to do that, but once you set external Id using identify it will be available for all the life cycle events emitted after that identify CC <!subteam^S04QT1G74Q3|@sdk-team>
f
Thanks! I have tried to emit identify event when the App Installed is fired. Not sure why this works on iOS the identify arrives before the App Installed event in the live events section. Tried to replicate the same logic for Android without success.
c
In some of the iOS devices, it takes a bit of time to fire the automatic lifecycle events. Hence identify event works even before first lifecycle event gets fired. Whereas in Android there is no delay.
gratitude thank you 1