Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions docs/analytics/_get-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,10 @@ await FirebaseAnalytics.instance

## Using Analytics without Ad ID support (iOS) {:#without-ad-id}

If your app doesn't use IDFA, you can use `FirebaseAnalyticsWithoutAdIdSupport`
instead of the default `FirebaseAnalytics` iOS dependency to avoid App Store
review questions about advertising identifiers.
If your app doesn't use IDFA, use the IDFA-free Analytics iOS dependency
(`FirebaseAnalyticsCore` under SPM, or `FirebaseAnalytics/Core` under CocoaPods)
instead of the default `FirebaseAnalytics` dependency to avoid App Store review
questions about advertising identifiers.

### Swift Package Manager

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import PackageDescription

let firebaseSdkVersion: Version = "12.14.0"

// Set FIREBASE_ANALYTICS_WITHOUT_ADID=true to use FirebaseAnalyticsWithoutAdIdSupport
// Set FIREBASE_ANALYTICS_WITHOUT_ADID=true to use FirebaseAnalyticsCore.
// e.g. FIREBASE_ANALYTICS_WITHOUT_ADID=true flutter build ios
let useWithoutAdId = ProcessInfo.processInfo.environment["FIREBASE_ANALYTICS_WITHOUT_ADID"] != nil
let analyticsProduct = useWithoutAdId ? "FirebaseAnalyticsWithoutAdIdSupport" : "FirebaseAnalytics"
let analyticsProduct = useWithoutAdId ? "FirebaseAnalyticsCore" : "FirebaseAnalytics"

let package = Package(
name: "firebase_analytics",
Expand Down
Loading