Skip to content

Commit 80cb71f

Browse files
nattb8claude
andcommitted
fix(audience-sdk): gate iOS attribution providers behind AUDIENCE_MOBILE_ATTRIBUTION (SDK-347)
Without this define, iOS could collect ATT status and IDFA at runtime even when AUDIENCE_MOBILE_ATTRIBUTION was not set, producing a mismatch between runtime behaviour and the privacy manifest (NSPrivacyTracking = false while IDFA was being collected). Both platforms now require the define before any attribution provider is registered, matching the documented two-gate model. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 10d8092 commit 80cb71f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Packages/Audience/Runtime/Unity/AudienceUnityHooks.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ private static void Install()
3535
ImmutableAudience.LaunchContextProvider = () => launchProps;
3636
ImmutableAudience.ContextProvider = () => contextProps;
3737

38-
#if UNITY_IOS && !UNITY_EDITOR
38+
#if UNITY_IOS && !UNITY_EDITOR && AUDIENCE_MOBILE_ATTRIBUTION
3939
ImmutableAudience.MobileAttributionProvider = () => SkanRegistration.RegisterIfFirstLaunch();
4040
ImmutableAudience.MobileAttributionContextProvider = () => AttributionContext.Capture();
4141
ImmutableAudience.TrackingAuthorizationRequestProvider = () => ATTBridge.RequestAsync();

0 commit comments

Comments
 (0)