Skip to content

Conversation

Mansi-mParticle
Copy link
Collaborator

Instructions

  1. PR target branch should be against development
  2. PR title name should follow this format: https://github.com/mParticle/mparticle-workflows/blob/main/.github/workflows/pr-title-check.yml
  3. PR branch prefix should follow this format: https://github.com/mParticle/mparticle-workflows/blob/main/.github/workflows/pr-branch-check-name.yml

Summary

  • Updated the logic to use the emailsha256 key and match the Identity enum value with the Android core.

Testing Plan

  • Was this tested locally? If not, explain why.
  • Tested with sample app and Added unit test cases

Reference Issue (For mParticle employees only. Ignore if you are an outside contributor)

@Mansi-mParticle Mansi-mParticle requested a review from a team as a code owner August 19, 2025 18:56
@Mansi-mParticle Mansi-mParticle force-pushed the SQDSDKS-7633-Map-identity-to-emailsha256 branch from c31464a to 357b352 Compare August 20, 2025 19:59
@Mansi-mParticle Mansi-mParticle force-pushed the SQDSDKS-7633-Map-identity-to-emailsha256 branch from 357b352 to 9b82749 Compare August 22, 2025 18:37
Copy link
Collaborator

@BrandonStalnaker BrandonStalnaker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

)
val hashedField = RoktKit::class.java.getDeclaredField("hashedEmailUserIdentityType")
hashedField.isAccessible = true
hashedField.set(roktKit, "UNASSIGNED")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be Unknown

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/mparticle-by-rokt/mPServer/pull/35784/files

I copied from Brian's PR in order to keep it consistent

Comment on lines +386 to +407
IdentityType.Other -> "Other"
IdentityType.CustomerId -> "CustomerId"
IdentityType.Facebook -> "Facebook"
IdentityType.Twitter -> "Twitter"
IdentityType.Google -> "Google"
IdentityType.Microsoft -> "Microsoft"
IdentityType.Yahoo -> "Yahoo"
IdentityType.Email -> "Email"
IdentityType.Alias -> "Alias"
IdentityType.FacebookCustomAudienceId -> "FacebookCustomAudienceId"
IdentityType.Other2 -> "Other2"
IdentityType.Other3 -> "Other3"
IdentityType.Other4 -> "Other4"
IdentityType.Other5 -> "Other5"
IdentityType.Other6 -> "Other6"
IdentityType.Other7 -> "Other7"
IdentityType.Other8 -> "Other8"
IdentityType.Other9 -> "Other9"
IdentityType.Other10 -> "Other10"
IdentityType.MobileNumber -> "MobileNumber"
IdentityType.PhoneNumber2 -> "PhoneNumber2"
IdentityType.PhoneNumber3 -> "PhoneNumber3"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason you reverted to capitalizing?

the attributes on rokt's site are all lowercase (and I'm not sure if casing matters)

https://docs.rokt.com/developers/integration-guides/rokt-ads/web-sdk/attributes/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants