Skip to content

Commit ae909be

Browse files
nattb8claude
andcommitted
feat(audience): auto-collect platform ID on consent upgrade to Full
Previously Steam and Epic identity collection only ran at Init. Games that start with Anonymous consent and upgrade to Full via SetConsent never had the platform ID collected automatically. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 0abb5b0 commit ae909be

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/Packages/Audience/Runtime/ImmutableAudience.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,11 @@ public static void SetConsent(ConsentLevel level)
665665

666666
newSession?.Start();
667667

668+
if (level == ConsentLevel.Full && previous != ConsentLevel.Full)
669+
{
670+
TryIdentifySteamUser();
671+
TryIdentifyEpicUser();
672+
}
668673

669674
SyncConsentToBackend(config, level, anonymousIdForPut);
670675
}

0 commit comments

Comments
 (0)