Closed samarthgupta2907 closed 4 months ago
@samarthgupta2907 Identity and Email are composite keys for the CleverTap SDK. If you provide the same email ID or identity then the profiles will be merged. Please check issue #113 particularly this comment for more info or raise a support ticket via our Help Center
Thanks for the quick revert Darshan. Thanks for clarifying this.
Hi @darshanclevertap - Before we close this. Can you help address this - https://github.com/CleverTap/clevertap-android-sdk/issues/113#issuecomment-1945976037
Would like to know if we have to handle this case in a specific way, or something else ? Since, currently our profiles with unique identifiers are getting merged into one because emails are same.
@darshanclevertap We want to keep the identifier as 'Identity' key only and not email or FBID. When checked on our CT console, only 'Identity' was selected but when debugged on the client side in the ConfigurableIdentityRepo class, the loaded identityset was having values as [Email, Identity] which seems to be picked from default legacy values which might be due to failed fetching from CT backend. My question is, is it enough to set the identifier on the console or do we need to set in the android manifest as well? Also, apart from pushing profiles from the app using onUserLogin, we do import them via SMTP using the same column names 'Identity', 'Email' amongst others. It would be helpful if you can guide us through this as docs and behaviour seems contradictory.
@rd7773 @samarthgupta2907 For both of you - the answer is that we need to do some code changes in the AndroidManifest file so that only "Identity" is treated as the primary key. To help you with the correct code for both of your cases, please reach out to our support teams via the Help Center and mention this GitHub issue and we will provide you with the steps to solve for your cases.
Closing this issue due to inactivity. Feel free to reopen for further assistance
Despite creating two unique identities, I can see the profiles are getting merged into one. I am calling the OnUserLogin API on the new identity, but on the clevertap dashboard, I can see these identities getting merged.
Expected behavior As per the documentation - On calling the OnUserLogin API, two different profiles should have been created.
Screenshots/Logs Adding logs and screenshots of the issue -