From 7a5d36a0c22f8af9ae6c2ba097be7f77c12802d2 Mon Sep 17 00:00:00 2001 From: Satheesh Kannan Date: Mon, 5 Aug 2024 20:05:36 +0530 Subject: [PATCH] fix: set anonymousId in traits when second Identify event is made --- Sources/Classes/RSContext.m | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/Classes/RSContext.m b/Sources/Classes/RSContext.m index 84262f4e..97590bb9 100644 --- a/Sources/Classes/RSContext.m +++ b/Sources/Classes/RSContext.m @@ -128,6 +128,7 @@ - (void) updateTraits:(RSTraits *)traits { if(existingId!=nil && userId!=nil && ![existingId isEqual:userId]) { self->_traits = [[traits dict] mutableCopy]; + self->_traits[@"anonymousId"] = [self->preferenceManager getAnonymousId]; [self resetExternalIds]; return; }